You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 rivejä
782 B

  1. #pragma once
  2. #include <ecs/config.h>
  3. #include <ecs/core/system/parallelism/strategy/none.h>
  4. namespace ecs {
  5. namespace signature {
  6. namespace system {
  7. namespace parallelism {
  8. namespace detail
  9. {
  10. struct none_builder_t
  11. {
  12. inline decltype(auto) operator()() const noexcept
  13. {
  14. #ifndef NDEBUG
  15. return ::ecs::core::system::parallelism::none(false);
  16. #else
  17. return ::ecs::core::system::parallelism::none();
  18. #endif
  19. }
  20. };
  21. struct none_t
  22. {
  23. constexpr decltype(auto) operator()() const noexcept
  24. { return none_builder_t { }; }
  25. };
  26. }
  27. constexpr decltype(auto) none = detail::none_t { };
  28. } } } }