slist (91a9c166) slist (7b77422c)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 48 unchanged lines hidden (view full) ---

57// lame emulation of the pre-C++11 slist using the std::forward_list (or std::list)
58template< typename T, class A=allocator<T> >
59class slist : public STLP4_SLIST_EMUBASE<T,A>
60{
61public:
62 typedef typename STLP4_SLIST_EMUBASE<T,A> _super;
63 typedef typename _super::iterator slist_mit;
64 typedef typename _super::const_iterator slist_cit;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 48 unchanged lines hidden (view full) ---

57// lame emulation of the pre-C++11 slist using the std::forward_list (or std::list)
58template< typename T, class A=allocator<T> >
59class slist : public STLP4_SLIST_EMUBASE<T,A>
60{
61public:
62 typedef typename STLP4_SLIST_EMUBASE<T,A> _super;
63 typedef typename _super::iterator slist_mit;
64 typedef typename _super::const_iterator slist_cit;
65#ifndef STLP4_SLIST_WITH_LIST
66 slist_mit insert( slist_cit aI, const T& rT) { return _super::insert_after( aI, rT); }
67#else
68private:
69 size_t size() const; // prevent use of slist::size() as forward_list doesn't have a size() method
70#endif
65
66private: // prevent the use of methods not available in forward_list
67 // signatures are intentionally mismatched to catch invocations
68 size_t size() const;
69 void insert( void) const;
71};
72
73}
74
75#endif // NO_STLPORT4_EMULATION
76
77#endif
78
70};
71
72}
73
74#endif // NO_STLPORT4_EMULATION
75
76#endif
77