23#ifndef VCL_BASE_CONST_CORRECTNESS_H
24#define VCL_BASE_CONST_CORRECTNESS_H
56 using type =
const T*;
67 using type = std::shared_ptr<const T>;
105 return const_cast<T&
>(value);
116 return const_cast<T*
>(value);
131void asConst(
const T&&) =
delete;
constexpr T & asConst(const T &value) noexcept
Utility function that converts a const pointer/reference to a non-const pointer/reference.
Definition const_correctness.h:103
typename MakeConstPointer< T >::type MakeConstPointerT
Utility alias for the MakeConstPointer type.
Definition const_correctness.h:78
Utility type that makes possible to treat const pointers in a templated class that can treat a both c...
Definition const_correctness.h:44