VCCC  2024.05
VisualCamp Common C++ library
as_const_pointer.hpp
Go to the documentation of this file.
1 //
2 // Created by YongGyu Lee on 3/27/24.
3 //
4 
5 #ifndef VCCC_RANGES_AS_CONST_POINTER_HPP_
6 #define VCCC_RANGES_AS_CONST_POINTER_HPP_
7 
8 namespace vccc {
9 namespace ranges {
10 
13 
14 template<typename T>
15 constexpr auto as_const_pointer(const T* p) noexcept {
16  return p;
17 }
18 
20 
21 } // namespace ranges
22 } // namespace vccc
23 
24 #endif // VCCC_RANGES_AS_CONST_POINTER_HPP_
constexpr auto as_const_pointer(const T *p) noexcept
Definition: as_const_pointer.hpp:15
Definition: directory.h:12