Template Function Pennylane::Util::reverse_lookup¶
- Defined in File ConstantUtil.hpp 
Function Documentation¶
- 
template<typename Key, typename Value, std::size_t size>
 constexpr auto Pennylane::Util::reverse_lookup(const std::array<std::pair<Key, Value>, size> &arr, const Value &value) -> Key¶
- Reverse lookup value in array of pairs. For a constexpr map-like behavior. - Template Parameters
- Key – Type of keys 
- Value – Type of values 
- size – Size of std::array 
 
- Parameters
- arr – Array to lookup 
- value – Value to find 
 
 
api/function_ConstantUtil_8hpp_1a64a9b416ed7b5a3c8965422906adf165
                Download Python script
                Download Notebook
                View on GitHub