diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/opt.cc (renamed from lib/stdx.cc) | 2 | ||||
| -rw-r--r-- | lib/stdx/opt.hpp (renamed from lib/stdx.hpp) | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -4,6 +4,6 @@ * Copyright 2023-2025, Amlal El Mahrouss all rights reserved. */ -#include <stdx.hpp> +#include <stdx/opt.hpp> // EOF diff --git a/lib/stdx.hpp b/lib/stdx/opt.hpp index 25e4157..66ef4a5 100644 --- a/lib/stdx.hpp +++ b/lib/stdx/opt.hpp @@ -40,7 +40,7 @@ namespace stdx }; template <typename Teller, typename... Lst> - stdx::ret eval(Teller tell, Lst&&... arg) + inline stdx::ret eval(Teller tell, Lst&&... arg) { return tell(std::forward<Lst>(arg)...) ? stdx::ret::okay : stdx::ret::err; } @@ -85,21 +85,21 @@ namespace stdx } // namespace traits template <typename... Lst> - ret eval_less_than(Lst&&... arg) + inline ret eval_less_than(Lst&&... arg) { static traits::int_less_than_teller eq; return eq(std::forward<Lst>(arg)...) ? ret::okay : ret::err; } template <typename... Lst> - ret eval_eq(Lst&&... arg) + inline ret eval_eq(Lst&&... arg) { static traits::int_eq_teller less_than; return less_than(std::forward<Lst>(arg)...) ? ret::okay : ret::err; } template <typename... Lst> - ret eval_greater(Lst&&... arg) + inline ret eval_greater(Lst&&... arg) { static traits::int_greater_than_teller greater_than; return greater_than(std::forward<Lst>(arg)...) ? ret::okay : ret::err; |
