All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
iterator.h File Reference

A simple iterator adapter for STL containers. More...

+ Include dependency graph for iterator.h:

Go to the source code of this file.

Classes

class  TfIterator< T, Reverse >
 A simple iterator adapter for STL containers. More...
 

Macros

#define TF_FOR_ALL(iter, c)
 Macro for iterating over a container. More...
 
#define TF_REVERSE_FOR_ALL(iter, c)
 Macro for iterating over a container in reverse. More...
 

Functions

template<class T >
TfIterator< typename
std::remove_reference< T >
::type > 
TfMakeIterator (T &&container)
 Helper functions for creating TfIterator objects. More...
 
template<class T >
TfIterator< typename
std::remove_reference< T >
::type, true > 
TfMakeReverseIterator (T &&container)
 
template<class T , size_t N>
constexpr size_t TfArraySize (const T(&array)[N]) noexcept
 Returns the number of elements in a statically sized array. More...
 

Detailed Description

A simple iterator adapter for STL containers.

Definition in file iterator.h.

Function Documentation

constexpr size_t TfArraySize ( const T(&)  array[N])
noexcept

Returns the number of elements in a statically sized array.

This function is an implementation of the array version of C++17's std::size()

Definition at line 407 of file iterator.h.