CPP Homework 04
Exercise from OTUS C++ developer course.
traits.h File Reference
#include <type_traits>
Include dependency graph for traits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  is_iterable< T, typename >
 Compile-time function to check can be instance iterated. More...
 
struct  is_iterable< T, std::void_t< typename T::iterator, decltype(std::declval< T >().begin()), decltype(std::declval< T >().end()) > >
 Compile-time function to check can be instance iterated. More...
 
struct  is_specialisation_of< T, typename >
 Compile-time function to check whether one type is a specialisation of another. More...
 
struct  is_specialisation_of< T, T< Args... > >
 Compile-time function to check whether one type is a specialisation of another. More...
 

Variables

template<typename T >
constexpr bool is_iterable_v { is_iterable<T>::value }
 
template<template< typename ... > class T, typename U >
constexpr bool is_specialisation_of_v { is_specialisation_of<T, U>::value }
 

Variable Documentation

◆ is_iterable_v

template<typename T >
constexpr bool is_iterable_v { is_iterable<T>::value }
private

Definition at line 38 of file traits.h.

◆ is_specialisation_of_v

template<template< typename ... > class T, typename U >
constexpr bool is_specialisation_of_v { is_specialisation_of<T, U>::value }
private

Definition at line 72 of file traits.h.