blob: cf087f1f09d5681d84ef62352ae3416c9d1c3711 [file] [edit]
$<_0>
-----
.. versionadded:: 4.5
.. |genex-family| replace:: :ref:`genex-family-genex-bound-operands`
.. include:: ../manual/include/GENEX_FAMILY.rst
.. code-block:: cmake
$<_0>
``$<_0>`` is the *bound operand* of the enclosing *binding operation*: a
generator expression that evaluates a ``<body>`` once for each value it
supplies, with ``$<_0>`` expanding to that value.
For example, :genex:`$<LIST:TRANSFORM,...,APPLY,body> <LIST:TRANSFORM>`
evaluates ``body`` once per list element with ``$<_0>`` bound to the current
element.
``$<_0>`` is only valid inside the body of a binding operation. Using it
anywhere else is an error.