Nano
A C++ template metaprogramming library
Static Public Attributes | List of all members
nano::is_found< Type1, Type2 > Struct Template Reference

Ths function is supposed to be used with the find functions on lists when searching through the list to find common or uncommon elements. It should be called by the zip HOF to determine if Type1 and Type2 should be zipped and added to the list of elements to return.

Please see the implementation of the find_common and zip functions for clarificaiton. More...

#include <functions.hpp>

Static Public Attributes

static constexpr bool result = Type2::value != -1 ? true : false
 

Detailed Description

template<typename Type1, typename Type2>
struct nano::is_found< Type1, Type2 >

Ths function is supposed to be used with the find functions on lists when searching through the list to find common or uncommon elements. It should be called by the zip HOF to determine if Type1 and Type2 should be zipped and added to the list of elements to return.

Please see the implementation of the find_common and zip functions for clarificaiton.

Template Parameters
Type1This should NOT be an element which represents if the element was found or not. It should be an index corresponding to the result of trying to find the element at the index represented by Type1 in the first list, in the second list.
Type2This should be the result of whether the element was found (either -1 if it wasn't found or its index in list2 if it was found).

Member Data Documentation

template<typename Type1 , typename Type2 >
constexpr bool nano::is_found< Type1, Type2 >::result = Type2::value != -1 ? true : false
static

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