Template Function sequant::get_ket_idx¶
Defined in File indices.hpp
Function Documentation¶
-
template<typename T>
auto sequant::get_ket_idx(T &&container) -> std::conditional_t<std::is_const_v<std::remove_reference_t<T>>, const Index&, Index&>¶ - Parameters:
container – An index group expected to represent a pair of indices
- Template Parameters:
T – The type of the container used to represent the index pair. May be a std::pair<Index, Index> or a container that retains the order of its elements based on how they have been inserted.
- Returns:
The ket index of the provided pair