mirror of
https://github.com/shadps4-emu/ext-fmt.git
synced 2024-11-27 03:30:32 +00:00
Inline trivial functions
This commit is contained in:
parent
48327a82e3
commit
75383a87f9
@ -895,11 +895,11 @@ template <typename T> class buffer {
|
||||
buffer(const buffer&) = delete;
|
||||
void operator=(const buffer&) = delete;
|
||||
|
||||
auto begin() noexcept -> T* { return ptr_; }
|
||||
auto end() noexcept -> T* { return ptr_ + size_; }
|
||||
FMT_INLINE auto begin() noexcept -> T* { return ptr_; }
|
||||
FMT_INLINE auto end() noexcept -> T* { return ptr_ + size_; }
|
||||
|
||||
auto begin() const noexcept -> const T* { return ptr_; }
|
||||
auto end() const noexcept -> const T* { return ptr_ + size_; }
|
||||
FMT_INLINE auto begin() const noexcept -> const T* { return ptr_; }
|
||||
FMT_INLINE auto end() const noexcept -> const T* { return ptr_ + size_; }
|
||||
|
||||
/** Returns the size of this buffer. */
|
||||
constexpr auto size() const noexcept -> size_t { return size_; }
|
||||
@ -1115,7 +1115,7 @@ auto get_buffer(OutputIt out) -> iterator_buffer<OutputIt, T> {
|
||||
}
|
||||
|
||||
template <typename Buffer>
|
||||
auto get_iterator(Buffer& buf) -> decltype(buf.out()) {
|
||||
FMT_INLINE auto get_iterator(Buffer& buf) -> decltype(buf.out()) {
|
||||
return buf.out();
|
||||
}
|
||||
template <typename T> auto get_iterator(buffer<T>& buf) -> buffer_appender<T> {
|
||||
@ -1715,7 +1715,7 @@ class locale_ref {
|
||||
const void* locale_; // A type-erased pointer to std::locale.
|
||||
|
||||
public:
|
||||
constexpr locale_ref() : locale_(nullptr) {}
|
||||
constexpr FMT_INLINE locale_ref() : locale_(nullptr) {}
|
||||
template <typename Locale> explicit locale_ref(const Locale& loc);
|
||||
|
||||
explicit operator bool() const noexcept { return locale_ != nullptr; }
|
||||
|
Loading…
Reference in New Issue
Block a user