IgnoredPlaceholder Class Reference

#include <tuple.h>

Detailed Description

A placeholder that can be assigned any value without having any effect. This is useful in conjunction with Tie:

Int x;
Tie(Ignore, x, Ignore) = FunctionReturningTupleOf3();
// We were only interested in the second element.

Ignore is the equivalent of std::ignore.

Public Member Functions

 IgnoredPlaceholder ()
 
template<typename T >
const IgnoredPlaceholderoperator= (const T &) const
 

Constructor & Destructor Documentation

◆ IgnoredPlaceholder()

Member Function Documentation

◆ operator=()

const IgnoredPlaceholder& operator= ( const T &  ) const
Int
maxon::Int Int
Definition: ge_sys_math.h:62
maxon::Tie
auto Tie(TYPES &... args) -> Tuple< TYPES &... >
Definition: tuple.h:1176
maxon::Ignore
static const IgnoredPlaceholder Ignore
Definition: tuple.h:1137