// ---------------------------------------------------------------------- // // defque.cc - Is std::queue's default Container a std::deque? // // History: // 28-Jan-2000 WEB Initial draft, adapted from defpriq.cc // 21-Feb-2000 WEB Correct namespace // 27-Apr-2000 WEB Replace get() member by container() const member // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" #include #include struct Q : public std::STL_QUEUE(int) { std::STL_DEQUE(int) container() const { return container_type(); } }; // Q int main() { Q q; q.push( 0 ); return q.front(); } // main()