Time.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * @file artis/utils/Time.hpp
  3. * @author See the AUTHORS file
  4. */
  5. /*
  6. * Copyright (C) 2012-2019 ULCO http://www.univ-littoral.fr
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. #ifndef UTILS_TIME
  22. #define UTILS_TIME
  23. namespace artis {
  24. namespace utils {
  25. template<typename Type, typename Limits>
  26. struct Time {
  27. static constexpr Type negative_infinity = Limits::negative_infinity;
  28. static constexpr Type infinity = Limits::positive_infinity;
  29. static constexpr Type null = Limits::null;
  30. typedef Type type;
  31. };
  32. }
  33. }
  34. #endif