VCCC
2024.05
VisualCamp Common C++ library
maybe_const.hpp
Go to the documentation of this file.
1
//
2
// Created by YongGyu Lee on 1/26/24.
3
//
4
5
#ifndef VCCC_TYPE_TRAITS_MAYBE_CONST_HPP
6
#define VCCC_TYPE_TRAITS_MAYBE_CONST_HPP
7
8
#include <type_traits>
9
10
namespace
vccc
{
11
14
15
template
<
bool
Const,
typename
V>
16
using
maybe_const
= std::conditional_t<Const, const V, V>;
17
19
20
}
// namespace vccc
21
22
#endif
// VCCC_TYPE_TRAITS_MAYBE_CONST_HPP
vccc::maybe_const
std::conditional_t< Const, const V, V > maybe_const
Definition:
maybe_const.hpp:16
vccc
Definition:
directory.h:12
include
vccc
__type_traits
maybe_const.hpp
Generated by
1.9.1