Skip to content

add remove_cvptr #189

@gpeterhoff

Description

@gpeterhoff

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 <boost/type_traits/remove_pointer.hpp>
#include <boost/type_traits/remove_cv.hpp>



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

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

#endif	//	BOOST_TYPE_TRAITS_REMOVE_CVPTR_HPP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions