.. Algorithms/Inserters//front_inserter front_inserter ============== Synopsis -------- .. parsed-literal:: template< typename Seq > struct front_inserter { // |unspecified| // |...| }; Description ----------- Inserts elements at the beginning of the sequence. Header ------ .. parsed-literal:: #include Model of -------- |Inserter| Parameters ---------- +---------------+-------------------------------+---------------------------------------+ | Parameter | Requirement | Description | +===============+===============================+=======================================+ | ``Seq`` | |Front Extensible Sequence| | A sequence to bind the inserter to. | +---------------+-------------------------------+---------------------------------------+ Expression semantics -------------------- |Semantics disclaimer...| |Inserter|. For any |Front Extensible Sequence| ``s``: +---------------------------+-------------------------------------------------------+ | Expression | Semantics | +===========================+=======================================================+ | ``front_inserter`` | An |Inserter| ``in``, equivalent to | | | | | | .. parsed-literal:: | | | | | | struct in : inserter > {}; | +---------------------------+-------------------------------------------------------+ Complexity ---------- Amortized constant time. Example ------- .. parsed-literal:: typedef reverse_copy< range_c , front_inserter< vector_c > >::type range; BOOST_MPL_ASSERT(( equal< range, range_c > )); See also -------- |Algorithms|, |Inserter|, |Reversible Algorithm|, |inserter|, |back_inserter|, |push_front|