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

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 124 of file TheWarehouse.h.

Member Function Documentation

◆ operator()()

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

Definition at line 127 of file TheWarehouse.h.

128  {
129  size_t h = 0;
130  for (auto & attrib : attribs)
131  hash_combine(h, *attrib);
132  return h;
133  }
void hash_combine(std::size_t &)
Used for hash function specialization for Attribute objects.
Definition: TheWarehouse.h:82

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