Sen API
Sen Libraries
Loading...
Searching...
No Matches
iterator_adapters.h File Reference
#include <cstddef>
#include <iterator>

Go to the source code of this file.

Classes

struct  sen::util::IteratorRange< IteratorType >
 Basic range abstraction to form a minimal range around two iterators. More...
class  sen::util::LockedRangeAdapter< LockType, IteratorType, MutexType >
 A range adapter to combine a range with lock. More...
struct  sen::util::SmartPtrIteratorAdapter< IteratorType >
 Iterator adapter to turn a iterator that iterates over a smart ptr sequence into one that iterates over pointers to the underlying type. More...

Namespaces

namespace  sen
namespace  sen::util

Functions

template<typename IteratorType>
IteratorRange< IteratorType > sen::util::makeRange (IteratorType begin, IteratorType end)
 Create a simple range for the two iterators.
template<typename ContainerType>
auto sen::util::makeRange (ContainerType &container)
 Create a simple range for the given container.
template<template< typename > typename LockType, typename IteratorType, typename MutexType>
auto sen::util::makeLockedRange (IteratorType begin, IteratorType end, MutexType &m)
 Create a LockedRangeAdapter for the given iterator pair and lock the given mutex.
template<template< typename > typename LockType, typename ContainerType, typename MutexType>
auto sen::util::makeLockedRange (ContainerType &container, MutexType &m)
 Create a LockedRangeAdapter for the given container and lock the given mutex.