This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| constexpr EXOTIC_NODISCARD decltype(auto) get(this auto&& self) noexcept { | |
| return std::forward<decltype(self)>(self); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) March 2026 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file | |
| template<template<typename> class Res, template<typename> class Dis> | |
| struct JsonBuildingPair { | |
| template<typename T> | |
| using Resolver = Res<T>; | |
| template<typename T> | |
| using Dispatcher = Dis<T>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /********************************************************************* | |
| * EXOTIC.lyst - Header-only C++ typelist library | |
| * | |
| * Copyright (c) 2026 Félix-Olivier Dumas | |
| * All rights reserved. | |
| * | |
| * Licensed under the Boost Software License, Version 1.0. | |
| * You may obtain a copy of the License at: | |
| * https://www.boost.org/LICENSE_1_0.txt | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /********************************************************************* | |
| * EXOTIC.lynx - Header-only C++ compile-time pipeline library | |
| * | |
| * Copyright (c) 2026 Félix-Olivier Dumas | |
| * All rights reserved. | |
| * | |
| * Licensed under the Boost Software License, Version 1.0. | |
| * You may obtain a copy of the License at: | |
| * https://www.boost.org/LICENSE_1_0.txt | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) December 2025 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file | |
| #include <iostream> | |
| struct Point { | |
| int x, y; | |
| Point(int a, int b) : x(a), y(b) {} | |
| void print() { std::cout << "(" << x << "," << y << ")\n"; } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) December 2025 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file | |
| template<typename Derived> | |
| struct Singleton { | |
| public: | |
| static Derived& instance() { | |
| static Derived instance(Token{}); | |
| return instance; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) December 2025 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file | |
| template<typename Hooked> | |
| struct IEventHookable { | |
| protected: | |
| IEventHookable() { | |
| if constexpr (requires(Hooked h) { h.onCreated(); }) | |
| static_cast<Hooked*>(this)->onCreated(); | |
| else onCreatedDefault(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) December 2025 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file | |
| template<typename Variation> | |
| class IPrinter { | |
| public: | |
| template<typename... Args> | |
| auto print(Args&&... args) noexcept -> | |
| std::enable_if_t<std::is_void_v | |
| <decltype(std::declval<Variation>().print(std::declval<Args>()...))>, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) December 2025 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file. | |
| template<typename T> | |
| struct Sparse { | |
| private: | |
| static constexpr std::size_t DEFAULT_DENSE_CAPACITY = 2048; | |
| static constexpr std::size_t DEFAULT_SPARSE_CAPACITY = 16384; | |
| inline void error_not_enough_capacity(const std::string& context, size_t required, size_t actual) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) November 2025 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file. | |
| class Registry { | |
| private: | |
| static constexpr std::uint32_t InitialEntityCapacity = 131072; | |
| static constexpr std::uint32_t InitialPoolCapacity = 262143; | |
| std::vector<ComponentMask> _cmask; | |
| std::vector<ComponentMask> _ctype; |
NewerOlder