forked from Alepha/Alepha
Stackable streambufs have a depth observer now.
This commit is contained in:
@ -93,6 +93,12 @@ namespace Alepha::Hydrogen::IOStreams::detail::StackableStreambuf_m
|
||||
}
|
||||
}
|
||||
|
||||
std::size_t
|
||||
exports::stackDepth( std::ios &ios )
|
||||
{
|
||||
return getStack( ios ).size();
|
||||
}
|
||||
|
||||
std::ostream &
|
||||
impl::operator << ( std::ostream &os, PopStack )
|
||||
{
|
||||
|
@ -21,6 +21,8 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: StackableStreambuf_m
|
||||
template< typename > struct PushStack;
|
||||
|
||||
struct PopStack{};
|
||||
|
||||
std::size_t stackDepth( std::ios & );
|
||||
}
|
||||
|
||||
struct StackableStreambufUnderlyingShim
|
||||
|
Reference in New Issue
Block a user