STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::single_element_range< T > Class Template Reference

A range over a single element that can be used in a range-based for loop. More...

Public Member Functions

 single_element_range (T &value)
 Construct the range by copying the single element.
 
iterator begin ()
 Iterator to the first (and only) value in the range.
 
iterator end ()
 End iterator (one past the end) for the single value.
 

Public Types

using value_type = T
 
using iterator = value_type *
 

Detailed Description

template<typename T>
class stapl::single_element_range< T >

A range over a single element that can be used in a range-based for loop.

Template Parameters
TThe type of the single value

The documentation for this class was generated from the following file: