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) May 2026 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file | |
| #pragma once | |
| #include <cstddef> | |
| #include <stdexcept> | |
| #include <atomic> | |
| #include <iostream> | |
| #include <new> |
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) May 2026 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file | |
| // Reference example of the pattern | |
| // See: https://medium.com/@felixolivierdumas/exotic-crtp-rethinking-static-polymorphism-with-c-23-89f9e75e8ffd | |
| #pragma once | |
| #include <iostream> | |
| #include <type_traits> |
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) May 2026 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file | |
| #pragma once | |
| #include <cstddef> | |
| #include <atomic> | |
| #include <stdexcept> | |
| namespace exotic::memory { |
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) May 2026 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file | |
| #pragma once | |
| // This is my own custom memory_resource, but you can either use your own | |
| // or the one from the standard library (std::pmr). | |
| #include "memory_resource.hpp" | |
| #include <cstddef> |
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) May 2026 Félix-Olivier Dumas. All rights reserved. | |
| // Licensed under the terms described in the LICENSE file | |
| #pragma once | |
| #include <cstddef> | |
| #include <tuple> | |
| #include <utility> | |
| #include <type_traits> | |
| #include <iostream> |
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"; } | |
| }; |
NewerOlder