Documentation for microsoft::quantum::notation::Capture

microsoft::quantum::notation::Capture

More...

#include <Rules/Notation/Notation.hpp>

Public Functions

Name
Capture(std::string const & name)
Explicit creation using string name constructor.
IOperandPrototypePtr operator=(IOperandPrototypePtr const & other)

Detailed Description

class microsoft::quantum::notation::Capture;

Helper class to enable literals for IR patterns. The main purpose of this class is to enable notation that allows one write "name"_cap = operandGenerator() where the operand generator is a function which creates a IOperandPrototypePtr. This notation means that whenever a operand is matched, the matched value is stored under "name".

Public Functions Documentation

function Capture

explicit Capture(
    std::string const & name
)

Explicit creation using string name constructor.

function operator=

IOperandPrototypePtr operator=(
    IOperandPrototypePtr const & other
)

Updated on 1 August 2023 at 16:25:10 UTC