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
maxon::Int Int
Definition: ge_sys_math.h:64
auto Tie(TYPES &... args) -> Tuple< TYPES &... >
Definition: tuple.h:1188
static const IgnoredPlaceholder Ignore
Definition: tuple.h:1149