VCCC  2024.05
VisualCamp Common C++ library
projected

helper template for specifying the constraints on algorithms that accept projections More...

Detailed Description

projected is used only to constrain algorithms that accept callable objects and projections, and hence its operator*() is not defined.

Warning
vccc::projected meets the requirements of C++ 26, but without using constraints user must check its validity with vccc::projectable<I, Proj>before using vccc::projected
See also
std::projected

Typedefs

template<typename I , typename Proj >
using projected = typename detail::projected_impl< I, Proj >::type
 
template<typename I , typename Proj >
using projectable = has_typename_type< detail::projected_impl< I, Proj > >
 Test if expression vccc::projected<I, Proj> is valid in an unqualified context. More...
 

Typedef Documentation

◆ projectable

using projectable = has_typename_type<detail::projected_impl<I, Proj> >

◆ projected

using projected = typename detail::projected_impl<I, Proj>::type