1
0
forked from Alepha/Alepha

Stackable streambufs have a depth observer now.

This commit is contained in:
2024-04-04 22:29:23 -04:00
parent 083a58dc99
commit 1a6460e717
2 changed files with 8 additions and 0 deletions

View File

@ -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 )
{

View File

@ -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