PATH:
usr
/
include
/
c++
/
4.8.2
// std::initializer_list support -*- C++ -*- // Copyright (C) 2008-2013 Free Software Foundation, Inc. // // This file is part of GCC. // // GCC is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3, or (at your option) // any later version. // // GCC is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // Under Section 7 of GPL version 3, you are granted additional // permissions described in the GCC Runtime Library Exception, version // 3.1, as published by the Free Software Foundation. // You should have received a copy of the GNU General Public License and // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. /** @file initializer_list * This is a Standard C++ Library header. */ #ifndef _INITIALIZER_LIST #define _INITIALIZER_LIST #pragma GCC system_header #if __cplusplus < 201103L # include <bits/c++0x_warning.h> #else // C++0x #pragma GCC visibility push(default) #include <bits/c++config.h> namespace std { /// initializer_list template<class _E> class initializer_list { public: typedef _E value_type; typedef const _E& reference; typedef const _E& const_reference; typedef size_t size_type; typedef const _E* iterator; typedef const _E* const_iterator; private: iterator _M_array; size_type _M_len; // The compiler can call a private constructor. constexpr initializer_list(const_iterator __a, size_type __l) : _M_array(__a), _M_len(__l) { } public: constexpr initializer_list() noexcept : _M_array(0), _M_len(0) { } // Number of elements. constexpr size_type size() const noexcept { return _M_len; } // First element. constexpr const_iterator begin() const noexcept { return _M_array; } // One past the last element. constexpr const_iterator end() const noexcept { return begin() + size(); } }; /** * @brief Return an iterator pointing to the first element of * the initilizer_list. * @param __ils Initializer list. */ template<class _Tp> constexpr const _Tp* begin(initializer_list<_Tp> __ils) noexcept { return __ils.begin(); } /** * @brief Return an iterator pointing to one past the last element * of the initilizer_list. * @param __ils Initializer list. */ template<class _Tp> constexpr const _Tp* end(initializer_list<_Tp> __ils) noexcept { return __ils.end(); } } #pragma GCC visibility pop #endif // C++11 #endif // _INITIALIZER_LIST
[-] cwctype
[edit]
[-] ostream
[edit]
[-] cstdbool
[edit]
[+]
tr1
[-] vector
[edit]
[-] climits
[edit]
[-] iosfwd
[edit]
[-] unordered_set
[edit]
[+]
profile
[-] csignal
[edit]
[-] initializer_list
[edit]
[-] cstdlib
[edit]
[-] cmath
[edit]
[-] locale
[edit]
[-] ratio
[edit]
[-] iterator
[edit]
[-] numeric
[edit]
[-] regex
[edit]
[+]
parallel
[-] typeinfo
[edit]
[-] ciso646
[edit]
[-] cstdio
[edit]
[+]
ext
[+]
..
[-] ccomplex
[edit]
[-] fenv.h
[edit]
[-] csetjmp
[edit]
[-] iostream
[edit]
[-] iomanip
[edit]
[-] type_traits
[edit]
[-] functional
[edit]
[-] map
[edit]
[+]
debug
[-] scoped_allocator
[edit]
[-] sstream
[edit]
[-] typeindex
[edit]
[-] cctype
[edit]
[-] streambuf
[edit]
[-] cstdint
[edit]
[-] cerrno
[edit]
[-] stdexcept
[edit]
[-] cinttypes
[edit]
[-] cstring
[edit]
[+]
decimal
[-] future
[edit]
[-] ios
[edit]
[-] unordered_map
[edit]
[-] complex
[edit]
[-] mutex
[edit]
[-] cxxabi.h
[edit]
[-] forward_list
[edit]
[-] complex.h
[edit]
[-] deque
[edit]
[-] condition_variable
[edit]
[-] valarray
[edit]
[-] atomic
[edit]
[-] ctime
[edit]
[-] new
[edit]
[-] cfenv
[edit]
[-] fstream
[edit]
[-] chrono
[edit]
[-] queue
[edit]
[-] cfloat
[edit]
[-] cstddef
[edit]
[-] limits
[edit]
[-] array
[edit]
[+]
backward
[+]
bits
[+]
tr2
[-] string
[edit]
[-] istream
[edit]
[-] system_error
[edit]
[-] memory
[edit]
[-] tgmath.h
[edit]
[-] exception
[edit]
[-] bitset
[edit]
[-] thread
[edit]
[-] random
[edit]
[-] ctgmath
[edit]
[-] cstdarg
[edit]
[-] utility
[edit]
[+]
x86_64-redhat-linux
[-] cstdalign
[edit]
[-] list
[edit]
[-] cassert
[edit]
[-] stack
[edit]
[-] cwchar
[edit]
[-] tuple
[edit]
[-] algorithm
[edit]
[-] set
[edit]
[-] clocale
[edit]