liuxiaolong
2021-07-20 58d904a328c0d849769b483e901a0be9426b8209
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Boost.Geometry
 
// Copyright (c) 2020, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
 
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
 
#ifndef BOOST_GEOMETRY_CORE_MAKE_HPP
#define BOOST_GEOMETRY_CORE_MAKE_HPP
 
namespace boost { namespace geometry
{
 
namespace traits
{
 
/*!
\brief Traits class to create an object of Geometry type.
\details This trait is optional and allows to define efficient way of creating Geometries.
\ingroup traits
\par Geometries:
    - points
    - boxes
    - segments
\par Specializations should provide:
    - static const bool is_specialized = true;
    - static member function apply() taking:
      - N coordinates (points)
      - 2 points, min and max (boxes)
      - 2 points, first and second (segments)
\tparam Geometry geometry
*/
template <typename Geometry>
struct make
{
    static const bool is_specialized = false;
};
 
} // namespace traits
 
 
}} // namespace boost::geometry
 
#endif // BOOST_GEOMETRY_CORE_MAKE_HPP