PNG  IHDR  8] PLTE S =tRNS   PNG  IHDR  8] PLTE S =tRNS   REDROOM
PHP 7.4.33
Preview: array Size: 6.86 KB
/opt/rh/gcc-toolset-14/root/usr/include/c++/14/tr1/array

// class template array -*- C++ -*-

// Copyright (C) 2004-2024 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library.  This library 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.

// This library 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 tr1/array
 *  This is a TR1 C++ Library header. 
 */

#ifndef _GLIBCXX_TR1_ARRAY
#define _GLIBCXX_TR1_ARRAY 1

#pragma GCC system_header

#include <bits/requires_hosted.h> // TR1

#include <bits/stl_algobase.h>

namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION

namespace tr1
{
  /**
   *  @brief A standard container for storing a fixed size sequence of elements.
   *
   *  @ingroup sequences
   *
   *  Meets the requirements of a <a href="tables.html#65">container</a>, a
   *  <a href="tables.html#66">reversible container</a>, and a
   *  <a href="tables.html#67">sequence</a>.
   *
   *  Sets support random access iterators.
   *
   *  @param  Tp  Type of element. Required to be a complete type.
   *  @param  N  Number of elements.
  */
  template<typename _Tp, std::size_t _Nm>
    struct array
    {
      typedef _Tp 	    			      value_type;
      typedef value_type&                   	      reference;
      typedef const value_type&             	      const_reference;
      typedef value_type*          		      iterator;
      typedef const value_type*			      const_iterator;
      typedef std::size_t                    	      size_type;
      typedef std::ptrdiff_t                   	      difference_type;
      typedef std::reverse_iterator<iterator>	      reverse_iterator;
      typedef std::reverse_iterator<const_iterator>   const_reverse_iterator;

      // Support for zero-sized arrays mandatory.
      value_type _M_instance[_Nm ? _Nm : 1];

      // No explicit construct/copy/destroy for aggregate type.

      void
      assign(const value_type& __u)
      { std::fill_n(begin(), size(), __u); }

      void
      swap(array& __other)
      { std::swap_ranges(begin(), end(), __other.begin()); }

      // Iterators.
      iterator
      begin()
      { return iterator(std::__addressof(_M_instance[0])); }

      const_iterator
      begin() const 
      { return const_iterator(std::__addressof(_M_instance[0])); }

      iterator
      end()
      { return iterator(std::__addressof(_M_instance[_Nm])); }

      const_iterator
      end() const
      { return const_iterator(std::__addressof(_M_instance[_Nm])); }

      reverse_iterator 
      rbegin()
      { return reverse_iterator(end()); }

      const_reverse_iterator 
      rbegin() const
      { return const_reverse_iterator(end()); }

      reverse_iterator 
      rend()
      { return reverse_iterator(begin()); }

      const_reverse_iterator 
      rend() const
      { return const_reverse_iterator(begin()); }

      // Capacity.
      size_type 
      size() const { return _Nm; }

      size_type 
      max_size() const { return _Nm; }

      _GLIBCXX_NODISCARD bool 
      empty() const { return size() == 0; }

      // Element access.
      reference
      operator[](size_type __n)
      { return _M_instance[__n]; }

      const_reference
      operator[](size_type __n) const
      { return _M_instance[__n]; }

      reference
      at(size_type __n)
      {
	if (__n >= _Nm)
	  std::__throw_out_of_range(__N("array::at"));
	return _M_instance[__n];
      }

      const_reference
      at(size_type __n) const
      {
	if (__n >= _Nm)
	  std::__throw_out_of_range(__N("array::at"));
	return _M_instance[__n];
      }

      reference 
      front()
      { return *begin(); }

      const_reference 
      front() const
      { return *begin(); }

      reference 
      back()
      { return _Nm ? *(end() - 1) : *end(); }

      const_reference 
      back() const
      { return _Nm ? *(end() - 1) : *end(); }

      _Tp*
      data()
      { return std::__addressof(_M_instance[0]); }

      const _Tp*
      data() const
      { return std::__addressof(_M_instance[0]); }
    };

  // Array comparisons.
  template<typename _Tp, std::size_t _Nm>
    inline bool 
    operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
    { return std::equal(__one.begin(), __one.end(), __two.begin()); }

  template<typename _Tp, std::size_t _Nm>
    inline bool
    operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
    { return !(__one == __two); }

  template<typename _Tp, std::size_t _Nm>
    inline bool
    operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b)
    { 
      return std::lexicographical_compare(__a.begin(), __a.end(),
					  __b.begin(), __b.end()); 
    }

  template<typename _Tp, std::size_t _Nm>
    inline bool
    operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
    { return __two < __one; }

  template<typename _Tp, std::size_t _Nm>
    inline bool
    operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
    { return !(__one > __two); }

  template<typename _Tp, std::size_t _Nm>
    inline bool
    operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
    { return !(__one < __two); }

  // Specialized algorithms [6.2.2.2].
  template<typename _Tp, std::size_t _Nm>
    inline void
    swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two)
    { __one.swap(__two); }

  // Tuple interface to class template array [6.2.2.5].

  /// tuple_size
  template<typename _Tp> 
    class tuple_size;

  /// tuple_element
  template<int _Int, typename _Tp>
    class tuple_element;

  template<typename _Tp, std::size_t _Nm>
    struct tuple_size<array<_Tp, _Nm> >
    { static const int value = _Nm; };

  template<typename _Tp, std::size_t _Nm>
    const int
    tuple_size<array<_Tp, _Nm> >::value;  

  template<int _Int, typename _Tp, std::size_t _Nm>
    struct tuple_element<_Int, array<_Tp, _Nm> >
    { typedef _Tp type; };

  template<int _Int, typename _Tp, std::size_t _Nm>
    inline _Tp&
    get(array<_Tp, _Nm>& __arr)
    { return __arr[_Int]; }

  template<int _Int, typename _Tp, std::size_t _Nm>
    inline const _Tp&
    get(const array<_Tp, _Nm>& __arr)
    { return __arr[_Int]; }
}

_GLIBCXX_END_NAMESPACE_VERSION
}

#endif // _GLIBCXX_TR1_ARRAY

Directory Contents

Dirs: 0 × Files: 62

Name Size Perms Modified Actions
6.86 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
22.40 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
5.85 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.27 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.48 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
2.06 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.39 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
2.31 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.46 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
42.89 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
12.14 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.27 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.26 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.35 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
2.67 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.55 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.86 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.26 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.25 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.22 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.78 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.53 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
26.50 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
15.64 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.22 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.22 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
69.30 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
6.08 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
14.34 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
41.01 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
24.50 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
27.41 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.28 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
10.41 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.23 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
4.49 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.79 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
15.88 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
3.83 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
11.40 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.59 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
70.09 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
52.66 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
90.79 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
13.74 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
32.46 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
4.94 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.23 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.23 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.23 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.22 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.49 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.27 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
11.88 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
18.58 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.58 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
9.98 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.58 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
9.32 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
3.19 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.26 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download
1.27 KB lrw-r--r-- 2025-11-11 11:26:45
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
 !"#$%&'(()*+,-./00123456789 t\ wIDATx ]ys  47Y ƒ -  "  Rv  < f{Ɛ $k l L > L  ~h^ 1  [  r G t& h  l F z3O Y ! p A(_g̷ E8 )S 8 c  Kb"z ~ 5 J xAL WU <  *  5 m;W a pB h ~P J 2 3 6 ҙ .Ƹ P i  4g F R L P ΪK/D  M v (a3 k J Œ4N5* SH ` SdJ z  O J Xՠ V>u ߱ BE&L b2 ?2` tX+  c CB A$ i b C ĀMB E : /  # Dx &l =q Ty  0 \p I ( L Ǎ { e 4k ;`u^ヲ eP!( d {  )T A 8 O;Ě n >;s6 !  :Nx `[S D HU ~ q›J F} a g*D 49 / pn k h (t 8NxƐF _!r չ7 ZR R׷ q/5") Ӎ NY 0 x sZ!   o  fu  ,  K"$ ? pg  㕣=  1» {h " fh7    y  } € +7  $ y " X —ą - G P u 4 m >J 5 L =V ' ^@I p ?MS xЌ XV P ! h "C NS9B8̢ ]!K  e   zA , ӏkbY  !< XQ ٿyS| *" f { w  4@[S <  # 0 ! js [m  =,~ o "ݎ DHf Wo $ g ! Vԅ t mB /y Wf V4񺍸 c+@x?  B ~u " xUN e 0 BĂ) ~J pz! 7y6]l Ԥ@ P a< O /DHC `≻  N m"$  0ObB }{ x AO FCG D R ^ "B  { WDH  UR l@ T #  +"d T ; 0 i  D}. 7 ` ' ] w rE &S i ƕiTD EL P _ u h $ Ա FG wVD G L R Zf ' .!] J /ZR oGЍs Mr Ĥ ʬ 3 Q [3 cL ` ^ p + ( F;# B 5 '  2Y f [  ϶R0e }  E 7 6M aۮ H <& n % L] E}Up x紉, Uw' Q  Ǯշo k ވۙ 0N94 VX5 xEDE l D #֤ } C o )W :  ^ s 9  bRf iX5u ཱི 4 :[  T 1. | [E 2ؽ Iy\ : o x K G 5 ylP ' uK E ftb/i[3 .g _  [3M n G, #NwQ5~  ؚ) | n =Ц"x qg gB ` 듘 ~ x w ? ? R~  _ u. &VQ K˻   H C ( TN˄+ `C dA nB׭ D 3"Z G ê ^k H_ /- ~ " R_  .8 Z_ 6@ o  xg  uP ? 3լ @7AM!  E7^ - =V L  x  g-D0  CtmW 7  O  G _ WD0 g C  w1 r d w : a | \  *" f nֳ ^ H# f L ` Z ۽hV  }S F r0Ù Bć5r] @! NL iQ]{s^=4 d  WD  "  "   M; t" 8 5 e dL| "-*st" ) SWD ?R[S e ooF  20.D ? bo =) A i o d ģ ZҰaO @E =) i D a &ܟa CϞ y6 ,<%{^x%{f8? `iw^ ?/ M * IEND B`