You.i Engine
YiDependentFalse< T > Struct Template Reference

Detailed Description

template<typename... T>
struct YiDependentFalse< T >

A class template can be used to create a compile-time sequence of integers This is used mostly with std::get<T> to access elements of a tuple.

The template parameter of this template is the number of elemnts in the sequence. Negative values are not supported. The generated list of integers can be accessed through the type typedef.

Note
This is a backport of C++14's std::make_index_sequence.
See also
YiIndexSequence

A templated class that always contains a 'false' value. This is used to generate compilation errors when a user calls a specific function (by causing a compilation error when a function is instantiated rather than when it is defined.)

Example:

template<typename T>
static void DoNotCallThis()
{
static_assert(YiDependentFalse<T>::value, "Do not call this function.");
}

#include <utility/YiTypeTraits.h>

Static Public Attributes

static const bool value = false
 

Member Data Documentation

template<typename... T>
const bool YiDependentFalse< T >::value = false
static

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