1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2 // doxygen_xml2qbk Example
4 // Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands.
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)
19 \defgroup fruit fruit: Fruit group
26 \brief Enumeration to select color
31 /// A yellow or yellowish color
33 /// A green or greeny color
41 \brief Any metafunction (with type)
51 \brief Any metafunction (with value)
57 static const fruit_color value = yellow;
67 \details The apple is the pomaceous fruit of the apple tree,
68 species Malus domestica in the rose family (Rosaceae)
69 \tparam String the string-type (string,wstring,utf8-string,etc)
76 template <typename String = std::string>
77 class apple : public rose
83 apple(String const& s) : sort(s) {}
86 // (more doxygen e.g. @return, etc)
87 String const& name() const { return sort; }
94 \details Eat the fruit
95 \param fruit the fruit
96 \tparam T the fruit type
104 template <typename T>
105 void eat(T const& fruit)
107 std::cout << fruit.name() << std::endl;