Listing 4: Extending the framework to stacks

template< typename V, typename C >
inline void insert( std::stack<V,C>& c, const V& v )
{
  c.push( v );
}
— End of Listing —