cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
Namespaces | Functions
17-as_const.hpp File Reference

Implements std::add_const by David Alan Martin. More...

Namespaces

 cxxomfort
 Namespace of the cxxomfort library.
 
 cxxomfort::cxxostd
 Backports made available by cxxomfort.
 

Functions

template<typename T >
constexpr std::add_const< T >::type & as_const (T &t) noexcept
 returns a const view of object t . A C++17 Backports . More...
 
template<typename T >
constexpr std::add_const< T >::type * as_ptr_const (T *const t) noexcept
 returns a const view of a pointer t . An extension to as_const() . More...
 

Detailed Description

Implements std::add_const by David Alan Martin.

Author
Luis Machuca Bezzaza <luis [dot] machuca [at] gulix [dot] cl>