mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-17 10:55:06 +00:00
17 lines
426 B
C++
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
|