Nostro/interfaces/Nostro-Banks.cppm

25 lines
581 B
Text
Raw Normal View History

2026-10-06 15:39:17 +02:00
//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
>;
}