1 /*
2 * Inkscape::Traits::ListCopy - helper traits class for copying lists
3 *
4 * Authors:
5 * MenTaLguY <mental@rydia.net>
6 *
7 * Copyright (C) 2004 MenTaLguY
8 *
9 * Released under GNU GPL, read the file 'COPYING' for more information
10 */
12 #ifndef SEEN_INKSCAPE_TRAITS_LIST_COPY_H
13 #define SEEN_INKSCAPE_TRAITS_LIST_COPY_H
15 #include <iterator>
16 #include "traits/copy.h"
17 #include "util/list.h"
19 namespace Inkscape {
21 namespace Traits {
23 template <typename InputIterator>
24 struct ListCopy {
25 typedef typename Copy<
26 typename std::iterator_traits<InputIterator>::value_type
27 >::Type ResultValue;
28 typedef typename Util::MutableList<ResultValue> ResultList;
29 };
31 }
33 }
35 #endif
36 /*
37 Local Variables:
38 mode:c++
39 c-file-style:"stroustrup"
40 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
41 indent-tabs-mode:nil
42 fill-column:99
43 End:
44 */
45 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :