ATLAS Offline Software
|
Add to a range class conversions to containers. More...
#include <range_with_conv.h>
Public Types | |
using | Elt_t = std::ranges::range_value_t< RANGE > |
Public Member Functions | |
template<template< class, class > class CONT, class ALLOC > | |
operator CONT< Elt_t, ALLOC > () const | |
Implicit conversion of the range to a container. More... | |
std::vector< Elt_t > | asVector () const |
Explicit conversion to a vector. More... | |
Add to a range class conversions to containers.
Many standard range objects allow operator[] but do not implement at(). Use this to add at() methods to a random_access_range class.
Definition at line 31 of file range_with_conv.h.
using CxxUtils::range_with_conv< RANGE >::Elt_t = std::ranges::range_value_t<RANGE> |
Definition at line 36 of file range_with_conv.h.
|
inline |
Explicit conversion to a vector.
For use from Python.
Definition at line 52 of file range_with_conv.h.
|
inline |
Implicit conversion of the range to a container.
Definition at line 43 of file range_with_conv.h.