arg_router  1.4.0
C++ command line argument parsing and routing
arg_router::algorithm::find_specialisation< T, Tuple > Class Template Reference

#include <arg_router/algorithm.hpp>

Static Public Attributes

constexpr static std::size_t value = boost::mp11::mp_find_if<Tuple, fn>::value
 

Detailed Description

template<template< typename... > typename T, typename Tuple>
class arg_router::algorithm::find_specialisation< T, Tuple >

Evaluates to the index of the specialisation of T in Tuple.

If Tuple does not contain a specialisation of T then the value is of the size of Tuple.

find_specialisation<std::vector, std::tuple<int, std::deque<int>, double>>::value // 3
find_specialisation<std::vector, std::tuple<int, std::vector<int>, double>>::value // 1
constexpr static std::size_t value
Definition: algorithm.hpp:37
Template Parameters
TSpecialisation to search for
TupleTypes to search (may be empty)

Definition at line 29 of file algorithm.hpp.

Member Data Documentation

◆ value

template<template< typename... > typename T, typename Tuple >
constexpr static std::size_t arg_router::algorithm::find_specialisation< T, Tuple >::value = boost::mp11::mp_find_if<Tuple, fn>::value
staticconstexpr

Index of specialisation of T in Tuple, or tuple size if not present.

Definition at line 37 of file algorithm.hpp.


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