26#ifndef _STLP_VALARRAY_C
27#define _STLP_VALARRAY_C
29#ifndef _STLP_VALARRAY_H
38 for (
size_t __i = 0; __i < this->
size(); ++__i)
39 __tmp[__i] = !(*
this)[__i];
51 (*this)[__i] = __x.
_M_array[__index];
58 size_t __index = __slice.
start();
61 ++__i, __index += __slice.
stride())
62 __tmp[__i] = (*this)[__index];
68 size_t __dim = _M_indices.size() - 1;
71 _M_1d_idx += _M_gslice._M_strides[__dim];
72 if (++_M_indices[__dim] != _M_gslice._M_lengths[__dim])
74 else if (__dim != 0) {
75 _M_1d_idx -= _M_gslice._M_strides[__dim] * _M_gslice._M_lengths[__dim];
76 _M_indices[__dim] = 0;
88 if (this->
size() != 0) {
100 if (__tmp.
size() != 0) {
111 for (
size_t __i = 0; __i < __mask.
size(); ++__i)
112 if (__mask[__i]) ++_p_size;
118 for (
size_t __i = 0; __i < __mask.
size(); ++__i)
119 if (__mask[__i]) __tmp[__idx++] = (*this)[__i];
128 for (
size_t __i = 0; __i < __x.
_M_addr.
size(); ++__i)
137 for (
size_t __i = 0; __i < __addr.
size(); ++__i)
138 __tmp[__i] = (*
this)[__addr[__i]];
152 if (__n < this->
size())
157 if (-__n < this->
size())
158 copy(this->_M_first, this->_M_first + this->
size() + __n,
177 copy(this->_M_first, this->_M_first +
__n,
179 copy(this->_M_first +
__n, this->_M_first + this->
size(),
#define _STLP_ASSERT(expr)
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
valarray< value_type > & _M_array
valarray< _Tp > & _M_array
valarray< _Tp > & _M_array
_Valarray_bool operator!() const
valarray< _Tp > & operator=(const valarray< _Tp > &__x)
valarray< _Tp > cshift(int __n) const
valarray< _Tp > shift(int __n) const
value_type operator[](size_t __n) const
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE