26#include <ql/errors.hpp>
37 QL_REQUIRE(!
stack_.empty(),
"SafeStack::top(): empty stack");
41 T v(std::move(
top()));
46 typename std::stack<T>::size_type
size()
const {
return stack_.size(); }
49 template <
typename... Args>
void emplace(Args&&... t) {
stack_.emplace(std::forward<Args>(t)...); }
void emplace(Args &&... t)
std::stack< T >::size_type size() const
void swap(const SafeStack< T > &other)
Serializable Credit Default Swap.