8#ifndef INCLUDED_BDLAT_ARRAYITERATORS
9#define INCLUDED_BDLAT_ARRAYITERATORS
174#include <bdlscm_version.h>
183#include <bsl_iterator.h>
201#if defined(BSLS_LIBRARYFEATURES_STDCPP_LIBCSTD)
206 :
public bsl::iterator<
207 bsl::output_iterator_tag,
208 typename bdlat_ArrayFunctions::ElementType<TYPE>::Type,
228 template <
class ELEM_TYPE>
230 const ELEM_TYPE *d_value;
233 ValueSetter(
const ELEM_TYPE* value) : d_value(value) { }
247#ifdef BSLS_COMPILERFEATURES_SUPPORT_DEFAULTED_FUNCTIONS
264 template <
class ELEM_TYPE>
290template <
class TYPE,
class ALLOC>
291typename bsl::back_insert_iterator<bsl::vector<TYPE, ALLOC> >
323 d_array = rhs.d_array;
328template <
class ELEM_TYPE>
335 ValueSetter<ELEM_TYPE> setter(&obj);
377template <
class TYPE,
class ALLOC>
379typename bsl::back_insert_iterator<bsl::vector<TYPE, ALLOC> >
382 return bsl::back_insert_iterator<bsl::vector<TYPE, ALLOC> >(*array);
TBD doc.
Definition bdlat_arrayiterators.h:211
bdlat_ArrayFunctions::ElementType< TYPE >::Type value_type
Definition bdlat_arrayiterators.h:217
void reference
Definition bdlat_arrayiterators.h:220
void difference_type
Definition bdlat_arrayiterators.h:218
void pointer
Definition bdlat_arrayiterators.h:219
BackInsertIterator & operator=(const ELEM_TYPE &obj)
bsl::output_iterator_tag iterator_category
Definition bdlat_arrayiterators.h:215
Definition bslstl_vector.h:1025
BackInsertIterator(TYPE *array)
Definition bdlat_arrayiterators.h:311
BackInsertIterator & operator++()
Definition bdlat_arrayiterators.h:352
BackInsertIterator & operator*()
Definition bdlat_arrayiterators.h:344
BackInsertIterator & operator=(const BackInsertIterator &rhs)
Assign this iterator the value of the specified rhs.
Definition bdlat_arrayiterators.h:320
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
int manipulateElement(TYPE *array, MANIPULATOR &manipulator, int index)
void resize(TYPE *array, int newSize)
bsl::size_t size(const TYPE &array)
Return the number of elements in the specified array.
Definition bdlat_arrayiterators.h:192
BackInsertIterator< TYPE > backInserter(TYPE *array)
int assign(LHS_TYPE *lhs, const RHS_TYPE &rhs)
Definition bdlat_arrayfunctions.h:712