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

#include <arg_router/algorithm.hpp>

Static Public Attributes

constexpr static bool value = find_specialisation_v<T, Tuple> < std::tuple_size_v<Tuple>
 

Detailed Description

template<template< typename... > typename T, typename Tuple>
struct arg_router::algorithm::has_specialisation< T, Tuple >

Evaluates to true if Tuple contains a specialisation if T.

has_specialisation<std::vector, std::tuple<int, std::deque<int>, double>> // false
has_specialisation<std::vector, std::tuple<int, std::vector<int>, double>> // true
Template Parameters
TSpecialisation to search for
TupleTypes to search (may be empty)

Definition at line 113 of file algorithm.hpp.

Member Data Documentation

◆ value

template<template< typename... > typename T, typename Tuple >
constexpr static bool arg_router::algorithm::has_specialisation< T, Tuple >::value = find_specialisation_v<T, Tuple> < std::tuple_size_v<Tuple>
staticconstexpr

True if a specialisation of T is in Policies.

Definition at line 115 of file algorithm.hpp.


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