boost::gil::histogram::operator[]

Subscript ( [] ) access to %unordered_map data.

Synopsis

Declared in <boost/gil/histogram.hpp>

mapped_type&
operator[](key_type const& __k);

Description

@{

Allows for easy lookup with the subscript ( [] )operator. Returns data associated with the key specified in subscript. If the key does not exist, a pair with that key is created using default values, which is then returned.

Lookup requires constant time.

Return Value

A reference to the data of the (key,data) %pair.

Parameters

Name

Description

__k

The key for which data should be retrieved.

Created with MrDocs