28#pragma warning(disable : 4244)
31#if _MSC_VER && _MSC_VER < 1900
32#define _ALLOW_KEYWORD_MACROS
33#define noexcept throw()
36#ifdef __INTEL_COMPILER
37#pragma warning(disable : 3682)
41#include <unordered_map>
44#include <unordered_set>
51#define DEV_QUOTED_HELPER(s) #s
52#define DEV_QUOTED(s) DEV_QUOTED_HELPER(s)
54#define DEV_IGNORE_EXCEPTIONS(X) \
60#define DEV_IF_THROWS(X) \
72using bytes = std::vector<uint8_t>;
77using StringMap = std::map<std::string, std::string>;
79using HexMap = std::map<bytes, bytes>;
93diff(N
const& _a, N
const& _b)
95 return std::max(_a, _b) - std::min(_a, _b);
108 std::function<void(
void)> m_f;
115#define DEV_UNUSED __attribute__((unused))
RAII utility class whose destructor calls a given function.
ScopeGuard(std::function< void(void)> _f)
A modifiable reference to an existing object or vector in memory.
std::array< char, 32 > string32
std::vector< std::string > strings
std::map< bytes, bytes > BytesMap
std::map< std::string, std::string > StringMap
std::vector< uint8_t > bytes
std::string const EmptyString
std::map< bytes, bytes > HexMap
std::unordered_map< std::string, std::string > StringHashMap
N diff(N const &_a, N const &_b)