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

#include <arg_router/algorithm.hpp>

Detailed Description

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

Evaluates to the count of the specialisations of T in Tuple.

count_specialisation<std::vector, std::tuple<int, std::deque<int>, double>>::value // 0
count_specialisation<std::vector, std::tuple<int, std::vector<int>, double>>::value // 1
count_specialisation<std::vector, std::tuple<int, std::vector<int>, std::vector<double>>>::value
// 2
Template Parameters
TSpecialisation to search for
TupleTypes to search (may be empty)

Definition at line 61 of file algorithm.hpp.


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