My Project
Classes | Typedefs | Functions
source_location.hpp File Reference
#include "color.hpp"
#include "cstdint.hpp"
#include "cstr_type.hpp"
#include "debug.hpp"

Go to the source code of this file.

Classes

class  bsl::source_location
 This class implements the source_location specification that will eventually be included in C++20. We make some changes to the specification to support AUTOSAR, but these changes should not change how the code is compiled or used, with the exception that we do not include the column() as this does not seem to be implemented by any compilers yet. More...
 

Typedefs

using bsl::sloc_type = source_location
 defines the type used to describe a bsl::source_location
 

Functions

constexpr source_location bsl::here (source_location const &sloc=source_location::current()) noexcept
 This provides a less verbose version of bsl::source_location::current() to help reduce how large this code must be. They are equivalent, and should not produce any additional overhead in release mode. More...
 

Detailed Description

Function Documentation

◆ here()

constexpr source_location bsl::here ( source_location const &  sloc = source_location::current())
noexcept

This provides a less verbose version of bsl::source_location::current() to help reduce how large this code must be. They are equivalent, and should not produce any additional overhead in release mode.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_source_location_here() noexcept
{
}
}
Parameters
slocthe source_location object corresponding to the location of the call site.
Returns
the source_location object corresponding to the location of the call site.