libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
iterator.hh File Reference

Bounds-checked output iterator helper. More...

#include <exception>
#include <iterator>

Go to the source code of this file.

Classes

class  keepass::bounds_checked_iterator< C >
 An output iterator that throws on writing past the end of a container. More...
 

Functions

template<typename C >
bounds_checked_iterator< C > keepass::bounds_checked (C &container)
 Convenience factory that creates a bounds-checked iterator.
 

Detailed Description

Bounds-checked output iterator helper.

Function Documentation

◆ bounds_checked()

template<typename C >
bounds_checked_iterator< C > keepass::bounds_checked ( C &  container)
inline

Convenience factory that creates a bounds-checked iterator.

Template Parameters
Cthe container type.
Parameters
containerthe container to iterate over.
Returns
a bounds-checked iterator over the container.