Debian Codegraph @

headers/initializer_list

raw
1 /* Copyright (C) 2015 Povilas Kanapickas <[email protected]>
2
3 This file is part of cppreference-doc
4
5 This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
6 Unported License. To view a copy of this license, visit
7 http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
8 Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9
10 Permission is granted to copy, distribute and/or modify this document
11 under the terms of the GNU Free Documentation License, Version 1.3 or
12 any later version published by the Free Software Foundation; with no
13 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
14 */
15
16 #ifndef CPPREFERENCE_INITIALIZER_LIST_H
17 #define CPPREFERENCE_INITIALIZER_LIST_H
18
19 #if CPPREFERENCE_STDVER>= 2011
20
21 namespace std {
22
23 template<class T>
24 class initializer_list {
25 public:
26 typedef T value_type;
27 typedef const T& reference;
28 typedef const T& const_reference;
29 typedef size_t size_type;
30
31 typedef const T* iterator;
32 typedef const T* const_iterator;
33
34 initializer_list();
35
36 size_t size() const;
37 const T* begin() const;
38 const T* end() const;
39 };
40
41 template<class T> const T* begin(initializer_list<T> il);
42 template<class T> const T* end(initializer_list<T> il);
43
44 } // namespace std
45
46 #endif // CPPREFERENCE_STDVER>= 2011
47 #endif // CPPREFERENCE_INITIALIZER_LIST_H