Generator container whose value for the element at an index is the index itself.
More...
|
reference | operator[] (index_type const &idx) const |
| Retrieve the value associated with a particular index (i.e., return the index.) More...
|
|
reference | get_element (index_type const &idx) const |
| Retrieve the value associated with a particular index (i.e., return the index.) More...
|
|
|
typedef T | value_type |
|
typedef value_type | reference |
|
typedef value_type | const_reference |
|
typedef value_type | index_type |
|
typedef index_type | gid_type |
|
template<typename T>
struct stapl::identity_container< T >
Generator container whose value for the element at an index is the index itself.
That is, if we have an identity_container ic, then ic[i] == i must be true.
- Template Parameters
-
◆ operator[]()
Retrieve the value associated with a particular index (i.e., return the index.)
- Parameters
-
idx | The index of the element to retrieve |
- Returns
- Copy of the index.
◆ get_element()
Retrieve the value associated with a particular index (i.e., return the index.)
- Parameters
-
idx | The index of the element to retrieve |
- Returns
- Copy of the index.
The documentation for this struct was generated from the following file:
- containers/generators/identity.hpp