kblib 0.2.3
General utilities library for modern C++
kblib::constant< T, V > Struct Template Reference

#include <kblib/convert.h>

Inheritance diagram for kblib::constant< T, V >:
Collaboration diagram for kblib::constant< T, V >:

Public Member Functions

constexpr auto operator- () -> constant< T, -V >
 
constexpr constant ()=default
 
constexpr constant (std::integral_constant< T, V >) noexcept
 

Detailed Description

template<typename T, T V>
struct kblib::constant< T, V >

Definition at line 220 of file convert.h.

Constructor & Destructor Documentation

◆ constant() [1/2]

template<typename T , T V>
constexpr kblib::constant< T, V >::constant ( )
constexprdefault

◆ constant() [2/2]

template<typename T , T V>
constexpr kblib::constant< T, V >::constant ( std::integral_constant< T, V >  )
inlineconstexprnoexcept

Definition at line 223 of file convert.h.

Member Function Documentation

◆ operator-()

template<typename T , T V>
constexpr auto kblib::constant< T, V >::operator- ( ) -> constant<T, -V>
inlineconstexpr

Definition at line 221 of file convert.h.


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