forked from boostorg/assert
Update documentation
This commit is contained in:
@@ -38,6 +38,10 @@ struct source_location
|
||||
constexpr uint_least32_t column() const noexcept;
|
||||
};
|
||||
|
||||
template<class E, class T>
|
||||
std::basic_ostream<E, T> &
|
||||
operator<<( std::basic_ostream<E, T> & os, source_location const & loc );
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#define BOOST_CURRENT_LOCATION \
|
||||
@@ -63,6 +67,17 @@ Effects: :: Constructs a `source_location` object for which `file_name()`
|
||||
returns `file`, `function_name()` returns `function`, `line()` returns the
|
||||
`line` argument and `column()` returns the `column` argument.
|
||||
|
||||
## operator<<
|
||||
|
||||
```
|
||||
template<class E, class T>
|
||||
std::basic_ostream<E, T> &
|
||||
operator<<( std::basic_ostream<E, T> & os, source_location const & loc );
|
||||
```
|
||||
|
||||
Effects: :: Outputs a string representation of `loc` to `os`.
|
||||
Returns: :: `os`.
|
||||
|
||||
## BOOST_CURRENT_LOCATION
|
||||
|
||||
When `BOOST_DISABLE_CURRENT_LOCATION` is not defined, the definition of
|
||||
|
Reference in New Issue
Block a user