Thoth
A functional, expressive, asynchronous C++26 webdev library
Loading...
Searching...
No Matches
LastMatchVariant.hpp File Reference
#include <variant>
Include dependency graph for LastMatchVariant.hpp:

Go to the source code of this file.

Namespaces

namespace  Thoth
 
namespace  Thoth::Utils
 

Typedefs

template<class T , class Variant >
using Thoth::Utils::FirstConvertibleVariant = std::variant_alternative_t< FindMatchIndex< T, Variant, std::is_convertible >(), Variant >
 
template<class T , class Variant >
using Thoth::Utils::FirstEqualVariant = std::variant_alternative_t< FindMatchIndex< T, Variant, std::is_same >(), Variant >
 

Functions

template<class T , class Variant , template< class, class > class Relation, std::size_t Index = 0>
consteval size_t Thoth::Utils::FindMatchIndexImpl ()
 
template<class T , class Variant , template< class, class > class Relation>
consteval std::size_t Thoth::Utils::FindMatchIndex ()