sqlitexx: iterator.hpp Source File

sqlitexx 0.0.1

iterator.hpp
Go to the documentation of this file.
1/*
2 * sqlite3xx - sqlite3 C++ layer, following the ideas of libpqxx
3 * Copyright (C) 2009 Andreas Baumann
4 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions of
7 * the GNU Lesser General Public License, as published by the Free Software
8 * Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 * License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this distribution; if not, write to:
18 * Free Software Foundation, Inc.
19 * 51 Franklin Street, Fifth Floor
20 * Boston, MA 02110-1301 USA
21 *
22 */
23
24#ifndef SQLITE3XX_ITERATOR_H
25#define SQLITE3XX_ITERATOR_H
26
27#include "sqlite3xx/port/sys.h"
28
29#ifdef SQLITE3XX_BROKEN_ITERATOR
30
31#include <iterator>
32
33namespace sqlite3xxstd {
34
35template<typename Cat,
36 typename T,
37 typename Dist,
38 typename Ptr=T*,
39 typename Ref=T&> struct iterator {
40
41 typedef Cat iterator_category;
42 typedef T value_type;
43 typedef Dist difference_type;
44 typedef Ptr pointer;
45 typedef Ref reference;
46};
47
48} /* namespace sqlite3xxstd */
49
50#endif /* SQLITE3XX_BROKEN_ITERATOR */
51
52#endif /* SQLITE3XX_ITERATOR_H */
sys.h