Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add remove_cvptr #189

Open
gpeterhoff opened this issue Feb 4, 2024 · 1 comment
Open

add remove_cvptr #189

gpeterhoff opened this issue Feb 4, 2024 · 1 comment

Comments

@gpeterhoff
Copy link

gpeterhoff commented Feb 4, 2024

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
@pdimov
Copy link
Member

pdimov commented Feb 5, 2024

This doesn't seem particularly useful to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants