mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fixed inconsistent indentation by replacing tabs with spaces.
This commit is contained in:
parent
b94a220c4a
commit
e9f995c2f4
@ -101,7 +101,7 @@ public:
|
|||||||
not_null(std::nullptr_t) = delete;
|
not_null(std::nullptr_t) = delete;
|
||||||
not_null(int) = delete;
|
not_null(int) = delete;
|
||||||
not_null<T>& operator=(std::nullptr_t) = delete;
|
not_null<T>& operator=(std::nullptr_t) = delete;
|
||||||
not_null<T>& operator=(int) = delete;
|
not_null<T>& operator=(int) = delete;
|
||||||
|
|
||||||
T get() const {
|
T get() const {
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
@ -113,8 +113,8 @@ public:
|
|||||||
operator T() const { return get(); }
|
operator T() const { return get(); }
|
||||||
T operator->() const { return get(); }
|
T operator->() const { return get(); }
|
||||||
|
|
||||||
bool operator==(const T& rhs) const { return ptr_ == rhs; }
|
bool operator==(const T& rhs) const { return ptr_ == rhs; }
|
||||||
bool operator!=(const T& rhs) const { return !(*this == rhs); }
|
bool operator!=(const T& rhs) const { return !(*this == rhs); }
|
||||||
private:
|
private:
|
||||||
T ptr_;
|
T ptr_;
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ namespace gsl
|
|||||||
{
|
{
|
||||||
struct fail_fast : public std::runtime_error
|
struct fail_fast : public std::runtime_error
|
||||||
{
|
{
|
||||||
explicit fail_fast(char const* const message) : std::runtime_error(message) {}
|
explicit fail_fast(char const* const message) : std::runtime_error(message) {}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,7 +255,7 @@ public:
|
|||||||
constexpr basic_string_span(basic_string_span&& other) = default;
|
constexpr basic_string_span(basic_string_span&& other) = default;
|
||||||
#else
|
#else
|
||||||
constexpr basic_string_span(basic_string_span&& other)
|
constexpr basic_string_span(basic_string_span&& other)
|
||||||
: span_(std::move(other.span_))
|
: span_(std::move(other.span_))
|
||||||
{}
|
{}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user