openjij
Framework for the Ising model and QUBO.
Loading...
Searching...
No Matches
insert_or_assign.hpp File Reference
#include <unordered_map>
Include dependency graph for insert_or_assign.hpp:

Go to the source code of this file.

Namespaces

namespace  openjij
 
namespace  openjij::utility
 

Functions

template<class C_key , class C_value , class Hash >
void openjij::utility::insert_or_assign (std::unordered_map< C_key, C_value, Hash > &um, const C_key &key, const C_value &val)
 Insert or assign a element of unordered_map (for C++14 or C++11)