Range-v3
Range algorithms, views, and actions for the Standard Library
conversion.hpp File Reference

Functions

template<typename Cont , typename Rng >
CPP_TEMPLATE_AUX_0 ranges::a (requires input_range< Rng > &&(!detail::convertible_to_cont< Rng, Cont >) &&detail::convertible_to_cont_cont< Rng, Cont >) aaauto to(Rng &&rng) -> Cont
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<template< typename... > class ContT, typename Rng , typename C = meta::invoke<detail::from_range<ContT>, Rng>>
CPP_TEMPLATE_AUX_0 ranges::a (requires range< Rng > &&detail::convertible_to_cont< Rng, C >) aaauto to(Rng &&rng) -> C
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename Cont , typename Rng >
CPP_TEMPLATE_AUX_0 ranges::a (requires range< Rng > &&detail::convertible_to_cont< Rng, Cont >) aaauto to(Rng &&rng) -> Cont
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<template< typename... > class ContT>
auto ranges::to () -> detail::to_container_fn< detail::from_range< ContT >>
 For initializing a container of the specified type with the elements of an Range. More...
 

Variables

constexpr detail::to_container_fn< detail::from_range< std::vector > > ranges::to_vector {}