coveo::linq
Implementation of .NET-like LINQ operators in C++
Public Types | List of all members
coveo::seq_element_traits< T > Struct Template Reference

Traits class for elements in a sequence. More...

Public Types

using value_type = T
 Type of element in the sequence. More...
 
using const_value_type = const value_type
 Type of element in the sequence, but const. More...
 
using raw_value_type = typename std::remove_cv< value_type >::type
 Raw type of element in the sequence. More...
 
using pointer = value_type *
 Pointer to a sequence element. More...
 
using reference = value_type &
 Reference to a sequence element. More...
 
using const_pointer = const_value_type *
 Pointer to a const sequence element. More...
 
using const_reference = const_value_type &
 Reference to a const sequence element. More...
 

Detailed Description

template<typename T>
struct coveo::seq_element_traits< T >

Traits class containing definitions pertaining to the elements of a sequence. For sequences of references or std::reference_wrappers, provides information about the referred type instead.

Template Parameters
TType of elements in the sequence.

Member Typedef Documentation

◆ value_type

template<typename T>
using coveo::seq_element_traits< T >::value_type = T

Type of the sequence's elements. Corresponds to T.

◆ const_value_type

template<typename T>
using coveo::seq_element_traits< T >::const_value_type = const value_type

◆ raw_value_type

template<typename T>
using coveo::seq_element_traits< T >::raw_value_type = typename std::remove_cv<value_type>::type

Same as coveo::seq_element_traits::value_type, but "raw", e.g. without const or volatile.

◆ pointer

template<typename T>
using coveo::seq_element_traits< T >::pointer = value_type*

Pointer to an element in the sequence. Corresponds to coveo::seq_element_traits::value_type*.

◆ reference

template<typename T>
using coveo::seq_element_traits< T >::reference = value_type&

Reference to an element in the sequence. Corresponds to coveo::seq_element_traits::value_type&.

◆ const_pointer

template<typename T>
using coveo::seq_element_traits< T >::const_pointer = const_value_type*

Pointer to a const element in the sequence. Corresponds to coveo::seq_element_traits::const_value_type*.

◆ const_reference

template<typename T>
using coveo::seq_element_traits< T >::const_reference = const_value_type&

Reference to a const element in the sequence. Corresponds to coveo::seq_element_traits::const_value_type&.


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