Einsums/Utilities/InCollection.hpp#

Defined in header Einsums/Utilities/InCollection.hpp.

See Overview for a list of names and headers that are part of the public Einsums API.

namespace einsums

Todo:

Functions

template<typename T, typename Haystack>
bool is_in(T &&needle, Haystack const &haystack)#

Check to see if an element is contained in a container or tuple.

template<typename T, Container Haystack>
bool is_in(T &&needle, Haystack const &haystack)#

Check to see if an element is contained in a container.

template<typename T>
bool is_in(T &&needle, std::initializer_list<std::decay_t<T>> haystack)#

Check to see if an element is contained in an initializer list.

template<typename T, typename Haystack>
bool not_in(T &&needle, Haystack const &haystack)#

Check to see if an element is not contained in a container or tuple.

template<typename T, Container Haystack>
bool not_in(T &&needle, Haystack const &haystack)#

Check to see if an element is not contained in a container.

template<typename T>
bool not_in(T &&needle, std::initializer_list<std::decay_t<T>> haystack)#

Check to see if an element is not contained in an initializer list.