BloombergLP::bdlat_ArrayIterators::backInserter

backInserter overloads

Synopses

Declared in <bdlat_arrayiterators.h>

Return a BackInsertIterator (of the appropriate type) to manipulate the specified array.

template<class TYPE>
bdlat_ArrayIterators::BackInsertIterator<TYPE>
backInserter(TYPE* array);
» more...

Specialization of backInserter for bsl::vector. Return bsl::back_insert_iterator instead of BackInsertIterator.

template<
    class TYPE,
    class ALLOC>
bsl::back_insert_iterator<bsl::vector<TYPE, ALLOC>>
backInserter(bsl::vector<TYPE, ALLOC>* array);
» more...

Return Value

  • back-insertion iterator that appends to array
  • bsl::back_insert_iterator that appends to array

Parameters

NameDescription
arrayarray to which the returned iterator appends elements