C++ Library Extensions 2022.12.09
To help learn modern C++ programming
22-is_template_v.cpp File Reference
#include <tpf_output.hpp>
Include dependency graph for 22-is_template_v.cpp:

Go to the source code of this file.

Classes

struct  no_type_t
 
struct  is_template_st< Type >
 
struct  is_template_st< ClassTemplate< Types... > >
 

Typedefs

template<typename Type >
using first_template_parameter_t = typename is_template_st< Type >::type
 

Functions

void test_is_template_v ()
 
void test_first_paremter_t ()
 
int main ()
 

Variables

tpf::sstream stream
 
auto endl = tpf::endl
 
template<typename Type >
constexpr bool is_valid_type_v = !std::is_same_v<Type, no_type_t>
 
template<typename Type >
constexpr bool is_template_v = is_template_st<Type>::value
 

Typedef Documentation

◆ first_template_parameter_t

template<typename Type >
using first_template_parameter_t = typename is_template_st<Type>::type

Definition at line 39 of file 22-is_template_v.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 108 of file 22-is_template_v.cpp.

Here is the call graph for this function:

◆ test_first_paremter_t()

void test_first_paremter_t ( )

Definition at line 53 of file 22-is_template_v.cpp.

Here is the caller graph for this function:

◆ test_is_template_v()

void test_is_template_v ( )

Definition at line 41 of file 22-is_template_v.cpp.

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 4 of file 22-is_template_v.cpp.

◆ is_template_v

template<typename Type >
constexpr bool is_template_v = is_template_st<Type>::value
constexpr

Definition at line 36 of file 22-is_template_v.cpp.

◆ is_valid_type_v

template<typename Type >
constexpr bool is_valid_type_v = !std::is_same_v<Type, no_type_t>
constexpr

Definition at line 33 of file 22-is_template_v.cpp.

◆ stream

tpf::sstream stream

Definition at line 3 of file 22-is_template_v.cpp.