25 lines
581 B
C++
25 lines
581 B
C++
//SPDX-License-Identifier: LGPL-3.0-only
|
|
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
|
|
|
export module Nostro:Banks;
|
|
|
|
#ifdef NOSTRO_BUNQ_ENABLED
|
|
import :Bunq;
|
|
#endif
|
|
|
|
import std;
|
|
|
|
namespace Nostro {
|
|
export template <typename T, typename Func>
|
|
constexpr void tuple_for(Func&& func) {
|
|
[&]<typename... Ts>(std::type_identity<std::tuple<Ts...>>) {
|
|
(func.template operator()<Ts>(), ...);
|
|
}(std::type_identity<T>{});
|
|
}
|
|
|
|
export using EnabledBanks = std::tuple<
|
|
#ifdef NOSTRO_BUNQ_ENABLED
|
|
BunqConnector
|
|
#endif
|
|
>;
|
|
}
|