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:

Tie(Ignore, x, Ignore) = FunctionReturningTupleOf3();
// We were only interested in the second element.
PyObject * x
Definition: bytesobject.h:38
maxon::Int Int
Definition: ge_sys_math.h:64
auto Tie(TYPES &... args) -> Tuple< TYPES &... >
Definition: tuple.h:1177
static const IgnoredPlaceholder Ignore
Definition: tuple.h:1138

Ignore is the equivalent of std::ignore.

Public Member Functions

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

Member Function Documentation

◆ operator=()

const IgnoredPlaceholder& operator= ( const T &  ) const