IDA C++ SDK 9.2
Loading...
Searching...
No Matches
qmap.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "qtree.hpp"
4#include "qida_alloc_shim.hpp"
5
6#include <functional> // for std::less
7
8template<typename Key, typename Value, typename Compare = std::less<Key>>
10
11template <class T, class U, class C>
12int compare(const qmap<T, U, C> &a, const qmap<T, U, C> &b)
13{
14 return compare_containers(a, b);
15}
16
17template <class T, class U, class C>
18struct ida_movable_type<qmap<T, U, C> >
19{
20 static constexpr bool value = true;
21};
Definition qtree.hpp:2617
int compare_containers(const T &l, const T &r)
Template to compare any 2 containers of the same type. Returns -1/0/1.
Definition pro.h:4648
int compare(const qmap< T, U, C > &a, const qmap< T, U, C > &b)
Definition qmap.hpp:12
qtree_detail::qmap< Key, Value, Compare, ida_alloc_policy, true > qmap
Definition qmap.hpp:9
static constexpr bool value
Definition qmap.hpp:20
Definition pro.h:1720