TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
nda::clef::evaluator< placeholder< N >, pair< Is, Ts >... >

#include <nda/clef/eval.hpp>

Detailed Description

template<int N, int... Is, typename... Ts>
struct nda::clef::evaluator< placeholder< N >, pair< Is, Ts >... >

Specialization of nda::clef::evaluator for nda::clef::placeholder types.

Template Parameters
NInteger label of the placeholder.
IsInteger labels of the placeholders in the given pairs.
TsTypes of the values in the given pairs.

Definition at line 76 of file eval.hpp.

Public Member Functions

__inline__ decltype(auto) operator() (placeholder< N >, pair< Is, Ts > &...pairs) const
 Evaluate the placeholder.
 

Static Public Attributes

static constexpr bool is_lazy = (N_position == -1)
 Constexpr variable that is true if the there is no nda::clef::pair containing an nda::clef::placeholder with label N.
 

Member Function Documentation

◆ operator()()

template<int N, int... Is, typename... Ts>
__inline__ decltype(auto) nda::clef::evaluator< placeholder< N >, pair< Is, Ts >... >::operator() ( placeholder< N > ,
pair< Is, Ts > &... pairs ) const
inline

Evaluate the placeholder.

Parameters
pairsPack of nda::clef::pair objects.
Returns
Value stored in the pair with the same integer label as the placeholder or a placeholder with the label N if no such pair was given.

Definition at line 101 of file eval.hpp.


The documentation for this struct was generated from the following file: