stlab.adobe.com Adobe Systems Incorporated
type_functions.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2005-2007 Adobe Systems Incorporated
3  Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
4  or a copy at http://stlab.adobe.com/licenses.html)
5 */
6 
7 /*************************************************************************************************/
8 
9 #ifndef ADOBE_ITERATOR_TYPE_FUNCTIONS_HPP
10 #define ADOBE_ITERATOR_TYPE_FUNCTIONS_HPP
11 
12 #include <adobe/config.hpp>
13 
14 #include <iterator>
15 
16 /*************************************************************************************************/
17 
18 namespace adobe {
19 
20 /*************************************************************************************************/
21 
25 #define ADOBE_ITERATOR_TYPE_FUNCTION_BOILERPLATE(type_name) \
26 template <typename I> /*I models InputIterator*/ \
27 struct type_name \
28 { typedef typename std::iterator_traits<I>::type_name type; };
29 
33 
34 #define ADOBE_DIFFERENCE_TYPE(I) typename adobe::difference_type<I>::type
35 #define ADOBE_ITERATOR_CATEGORY(I) typename adobe::iterator_category<I>::type
36 #define ADOBE_VALUE_TYPE(I) typename adobe::value_type<I>::type
37 
39 
40 /*************************************************************************************************/
41 
42 } // namespace adobe
43 
44 /*************************************************************************************************/
45 
46 #endif
47 // ADOBE_ITERATOR_DISTANCE_HPP

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google