3 // Copyright (c) 2020, Oracle and/or its affiliates.
4 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
6 // Use, modification and distribution is subject to the Boost Software License,
7 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
10 #ifndef BOOST_GEOMETRY_CORE_MAKE_HPP
11 #define BOOST_GEOMETRY_CORE_MAKE_HPP
13 namespace boost { namespace geometry
20 \brief Traits class to create an object of Geometry type.
21 \details This trait is optional and allows to define efficient way of creating Geometries.
27 \par Specializations should provide:
28 - static const bool is_specialized = true;
29 - static member function apply() taking:
30 - N coordinates (points)
31 - 2 points, min and max (boxes)
32 - 2 points, first and second (segments)
33 \tparam Geometry geometry
35 template <typename Geometry>
38 static const bool is_specialized = false;
44 }} // namespace boost::geometry
46 #endif // BOOST_GEOMETRY_CORE_MAKE_HPP