www.mooseframework.org
Public Member Functions | List of all members
std::hash< std::vector< std::unique_ptr< Attribute > > > Struct Template Reference

This template specialization allows vector<Attribute> to be used as unordered map key. More...

#include <TheWarehouse.h>

Public Member Functions

std::size_t operator() (const std::vector< std::unique_ptr< Attribute >> &attribs) const
 

Detailed Description

template<>
struct std::hash< std::vector< std::unique_ptr< Attribute > > >

This template specialization allows vector<Attribute> to be used as unordered map key.

Definition at line 163 of file TheWarehouse.h.

Member Function Documentation

◆ operator()()

std::size_t std::hash< std::vector< std::unique_ptr< Attribute > > >::operator() ( const std::vector< std::unique_ptr< Attribute >> &  attribs) const
inline

Definition at line 166 of file TheWarehouse.h.

167  {
168  std::size_t h = 0;
169  for (auto & attrib : attribs)
170  Moose::hash_combine(h, *attrib);
171  return h;
172  }
void hash_combine(std::size_t &)
Used for hash function specialization for Attribute objects.
Definition: MooseHashing.h:22

The documentation for this struct was generated from the following file: