2026-10-12 20:29:29 +02:00

17 lines
426 B
C++

// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <TactilityCpp/Allocator.h>
#include <functional>
#include <map>
#include <utility>
namespace tt::std {
/** std::map that prefers external memory (PSRAM) and falls back to internal RAM */
template<typename Key, typename Value>
using map = ::std::map<Key, Value, ::std::less<Key>, tt::OptExternalAllocator<::std::pair<const Key, Value>>>;
} // namespace tt::std