access.cpp 367 B

12345678910111213141516
  1. //
  2. // Copyright (c) 2019-2020 Ivan Baidakou (basiliscos) (the dot dmol at gmail dot com)
  3. //
  4. // Distributed under the MIT Software License
  5. //
  6. #include "access.h"
  7. namespace rotor::test {
  8. bool empty(rotor::subscription_t &subs) noexcept {
  9. return subs.access<to::internal_infos>().empty() && subs.access<to::mine_handlers>().empty();
  10. }
  11. } // namespace rotor::test