cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
basics.hpp File Reference
#include <cstdint>
#include <functional>
#include <type_traits>
#include <utility>
#include <prc/std.hpp>

Go to the source code of this file.

Namespaces

namespace  pRC
 

Typedefs

template<class... Ts>
using pRC::Tuple = std::tuple<Ts...>
 
template<std::size_t I, class T >
using pRC::TupleElement = std::tuple_element_t<I, T>
 
using pRC::Void = void
 
using pRC::Bool = bool
 
using pRC::Size = std::size_t
 
using pRC::Index = Size
 
using pRC::Seed = std::uint32_t
 
template<class T , T V>
using pRC::Constant = std::integral_constant<T, V>
 
template<class T >
using pRC::RemoveReference = std::remove_reference_t<T>
 
template<class T >
using pRC::RemoveConst = std::remove_const_t<T>
 
template<class T >
using pRC::RemoveConstReference = RemoveConst<RemoveReference<T>>
 
template<class T >
using pRC::AddConst = std::add_const_t<T>
 
template<class... Ts>
using pRC::Common = std::common_type_t<Ts...>
 
template<Bool B, class T , class F >
using pRC::Conditional = std::conditional_t<B, T, F>
 
template<class F , class... Args>
using pRC::ResultOf = std::invoke_result_t<F, Args...>
 
template<class T >
using pRC::UnderlyingType = std::underlying_type_t<T>
 

Functions

template<class... Xs>
static constexpr auto pRC::forwardAsTuple (Xs &&...args)
 
template<class X >
static constexpr AddConst< X > & pRC::asConst (X &a)
 
template<class X >
static constexpr RemoveConst< X > pRC::asConst (X &&a)
 
template<class X >
static constexpr RemoveConst< X > pRC::as (X &&a)