LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::ranges Namespace Reference

Contains helpers for working with ranges and views. More...

Classes

struct  to_container
 

Functions

template<typename TContainer , std::ranges::range TRange>
requires std::convertible_to<std::ranges::range_value_t<TRange>, typename TContainer::value_type>
TContainer operator| (TRange &&range, to_container< TContainer >)
 
template<std::ranges::range TContainer>
requires (!std::ranges::view<TContainer>)
auto to ()
 

Detailed Description

Contains helpers for working with ranges and views.

Function Documentation

◆ operator|()

template<typename TContainer , std::ranges::range TRange>
requires std::convertible_to<std::ranges::range_value_t<TRange>, typename TContainer::value_type>
TContainer LiteFX::ranges::operator| ( TRange &&  range,
to_container< TContainer >   
)
inline

◆ to()

template<std::ranges::range TContainer>
requires (!std::ranges::view<TContainer>)
auto LiteFX::ranges::to ( )

This may be replaced by std::views::to in the future.

Returns