initial commit
This commit is contained in:
commit
be13205ffd
19 changed files with 33596 additions and 0 deletions
25
interfaces/Nostro-Banks.cppm
Normal file
25
interfaces/Nostro-Banks.cppm
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
//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
|
||||
>;
|
||||
}
|
||||
Loading…
Reference in a new issue