boostorg / boostorg/type_traits

add remove_cvptr

Open
#189 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
66
Forks
87
PR merge metrics
No merged PRs in 30d

Description

like remove_cvref
remove_cvptr.hpp
```
// Distributed under the Boost Software License Version 1.0 https://www.boost.org/LICENSE_1_0.txt
// Copyright Gero Peterhoff

#ifndef BOOST_TYPE_TRAITS_REMOVE_CVPTR_HPP
#define BOOST_TYPE_TRAITS_REMOVE_CVPTR_HPP

#include
#include

namespace boost
{
template
struct remove_cvptr
{
typedef typename remove_cv::type>::type type;
};

#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
template using remove_cvptr_t = typename remove_cvptr::type;
#endif
} // boost

#endif // BOOST_TYPE_TRAITS_REMOVE_CVPTR_HPP
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.