Project
Loading...
Searching...
No Matches
type_index< Iterator, End, Element, T, Count > Struct Template Reference

Public Types

using type = typename bmpl::if_< typename std::is_same< Element, T >::type, bmpl::int_< Count >, typename type_index< typename bmpl::next< Iterator >::type, End, typename bmpl::deref< Iterator >::type, T, Count+1 >::type >::type
 

Static Public Attributes

static const int value = type::value
 

Detailed Description

template<typename Iterator, typename End, typename Element, typename T, int Count = 0>
struct type_index< Iterator, End, Element, T, Count >

Definition at line 49 of file test_mpl_tools.cxx.

Member Typedef Documentation

◆ type

template<typename Iterator , typename End , typename Element , typename T , int Count = 0>
using type_index< Iterator, End, Element, T, Count >::type = typename bmpl::if_<typename std::is_same<Element, T>::type, bmpl::int_<Count>, typename type_index<typename bmpl::next<Iterator>::type, End, typename bmpl::deref<Iterator>::type, T, Count + 1 >::type>::type

Definition at line 50 of file test_mpl_tools.cxx.

Member Data Documentation

◆ value

template<typename Iterator , typename End , typename Element , typename T , int Count = 0>
const int type_index< Iterator, End, Element, T, Count >::value = type::value
static

Definition at line 56 of file test_mpl_tools.cxx.


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