Metafunction determining the index of an item in a bound container.
More...
#include <Functor.h>
|
using | ContainerBinding = Binding< Container > |
| Type of bound container.
|
|
using | type = std::conditional_t< std::is_rvalue_reference< Container && >::value||std::is_fundamental< std::decay_t< Container >>::value, std::decay_t< Container >, const Container & > |
|
|
template<typename T > |
auto | operator() (const T &item) const |
| Determine index of an item in the container. More...
|
|
constexpr | Binding (Container &&t) noexcept |
|
template<class Container>
struct Scine::Molassembler::Temple::Functor::IndexIn< Container >
Metafunction determining the index of an item in a bound container.
template<class Container >
template<typename T >
Determine index of an item in the container.
- Parameters
-
- Returns
- index of item in the container
- Exceptions
-
std::out_of_range | if the item is not found |
The documentation for this struct was generated from the following file: