1 // Copyright 2004, 2005 The Trustees of Indiana University. 2 3 // Use, modification and distribution is subject to the Boost Software 4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 5 // http://www.boost.org/LICENSE_1_0.txt) 6 7 // Authors: Douglas Gregor 8 // Andrew Lumsdaine 9 #ifndef BOOST_GRAPH_POINT_TRAITS_HPP 10 #define BOOST_GRAPH_POINT_TRAITS_HPP 11 12 namespace boost 13 { 14 namespace graph 15 { 16 17 template < typename Point > struct point_traits 18 { 19 // The type of each component of the point 20 typedef typename Point::component_type component_type; 21 22 // The number of dimensions in the point 23 static std::size_t dimensions(const Point& point); 24 }; 25 26 } 27 } // end namespace boost::graph 28 29 #endif // BOOST_GRAPH_POINT_TRAITS_HPP 30