15 #ifndef Om_Sink_ContainerBackSink_
21 #ifndef Om_Macro_Precompilation_
23 #include "boost/test/unit_test.hpp"
31 BOOST_AUTO_TEST_SUITE(ContainerBackSinkTest)
33 BOOST_AUTO_TEST_CASE(GeneralTest) {
34 std::string theSinkString(
"01");
38 > theSink(theSinkString);
57 BOOST_AUTO_TEST_SUITE_END()
72 typename ThisContainer \
76 Om::Sink::ContainerBackSink< \
84 inline Type_::ContainerBackSink(ThisContainer & theContainer):
85 thisContainer(theContainer) {}
88 inline Type_ & Type_::operator =(ContainerBackSink theContainerBackSink) {
89 this->Swap(theContainerBackSink);
94 inline void Type_::Push(ThisItem & thisItem) {
95 this->thisContainer.push_back(thisItem);
99 inline void Type_::Swap(ContainerBackSink & theContainerBackSink) {
102 theContainerBackSink.thisContainer
113 typename TheContainer
125 theFirst.Swap(theSecond);
A Sink adapter for a container; pushes items into the back.
void swap(Om::Language::Expression &, Om::Language::Expression &)