is_valid.hpp 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2014, Oracle and/or its affiliates.
  3. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
  4. // Licensed under the Boost Software License version 1.0.
  5. // http://www.boost.org/users/license.html
  6. #ifndef BOOST_GEOMETRY_ALGORITHMS_DISPATCH_IS_VALID_HPP
  7. #define BOOST_GEOMETRY_ALGORITHMS_DISPATCH_IS_VALID_HPP
  8. #include <boost/geometry/core/tag.hpp>
  9. #include <boost/geometry/algorithms/not_implemented.hpp>
  10. namespace boost { namespace geometry
  11. {
  12. #ifndef DOXYGEN_NO_DISPATCH
  13. namespace dispatch
  14. {
  15. template
  16. <
  17. typename Geometry,
  18. typename Tag = typename tag<Geometry>::type,
  19. // for multi-geometries: determines if empty multi-geometries are allowed
  20. bool AllowEmptyMultiGeometries = true
  21. >
  22. struct is_valid
  23. : not_implemented<Geometry>
  24. {};
  25. } // namespace dispatch
  26. #endif // DOXYGEN_NO_DISPATCH
  27. }} // namespace boost::geometry
  28. #endif // BOOST_GEOMETRY_ALGORITHMS_DISPATCH_IS_VALID_HPP