folly::padded::Iterator

Wrapper around iterators to Node to return iterators to the underlying node elements.

Synopsis

Declared in <folly/Padded.h>

template<class Iter>
class Iterator;

Type Aliases

NameDescription
Node The underlying node type this iterator ranges over.

Member Functions

NameDescription
Iterator [constructor]Constructs an iterator positioned at the start of no node.
Iterator [constructor]Constructs an iterator at the first element of the given node iterator.
node Returns the current node.
pos Returns the position inside the current node.

Friends

NameDescription
boost::iterators::iterator_core_access

Non-Member Functions

NameDescription
beginReturns a const element iterator to the first element in the first Node.
beginReturns an element iterator to the first element in the first Node.
cbeginGiven a container to Node, return iterators to the first element in the first Node / one past the last element in the last Node. Note that the last node is assumed to be full; if that's not the case, subtract from end() as appropriate.
cendReturns a const element iterator one past the last element in the last Node.
endReturns an element iterator one past the last element in the last Node.
endReturns a const element iterator one past the last element in the last Node.