AIToolbox
A library that offers tools for AI problem solving.
AIToolbox::copy_const< CopiedType, ConstReference > Struct Template Reference

This struct is used to copy constness from one type to another. More...

#include <AIToolbox/TypeTraits.hpp>

Public Types

using type = typename std::conditional_t< std::is_const_v< ConstReference >, std::add_const_t< CopiedType >, std::remove_const_t< CopiedType > >
 

Detailed Description

template<typename CopiedType, typename ConstReference>
struct AIToolbox::copy_const< CopiedType, ConstReference >

This struct is used to copy constness from one type to another.

Member Typedef Documentation

◆ type

template<typename CopiedType , typename ConstReference >
using AIToolbox::copy_const< CopiedType, ConstReference >::type = typename std::conditional_t<std::is_const_v<ConstReference>, std::add_const_t<CopiedType>, std::remove_const_t<CopiedType> >

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