All: Clear lines with only whitspace in them
This commit is contained in:
@@ -119,7 +119,7 @@ namespace BAN
|
||||
m_size -= count;
|
||||
m_data[m_size] = '\0';
|
||||
}
|
||||
|
||||
|
||||
void String::clear()
|
||||
{
|
||||
m_size = 0;
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace BAN
|
||||
{
|
||||
return m_size;
|
||||
}
|
||||
|
||||
|
||||
const char* StringView::data() const
|
||||
{
|
||||
return m_data;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace BAN
|
||||
leap_years++;
|
||||
return leap_years;
|
||||
}
|
||||
|
||||
|
||||
static constexpr uint64_t month_days[] { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 };
|
||||
|
||||
uint64_t to_unix_time(const BAN::Time& time)
|
||||
|
||||
@@ -28,9 +28,8 @@ namespace BAN::Formatter
|
||||
static size_t parse_format_and_print_argument(F putc, const char* format, T&& arg);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
|
||||
IMPLEMENTATION
|
||||
|
||||
*/
|
||||
@@ -42,7 +41,7 @@ namespace BAN::Formatter
|
||||
int fill = 0;
|
||||
bool upper = false;
|
||||
};
|
||||
|
||||
|
||||
template<typename F>
|
||||
void print(F putc, const char* format)
|
||||
{
|
||||
@@ -232,7 +231,7 @@ namespace BAN::Formatter
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
|
||||
TEMPLATE SPECIALIZATIONS
|
||||
|
||||
*/
|
||||
@@ -245,5 +244,5 @@ namespace BAN::Formatter
|
||||
template<typename F> void print_argument(F putc, bool value, const ValueFormat&) { print(putc, value ? "true" : "false"); }
|
||||
template<typename F> void print_argument(F putc, const char* value, const ValueFormat&) { print(putc, value); }
|
||||
template<typename F> void print_argument(F putc, char* value, const ValueFormat&) { print(putc, value); }
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
namespace BAN
|
||||
{
|
||||
|
||||
|
||||
|
||||
template<typename, size_t> class Array;
|
||||
template<typename> class ErrorOr;
|
||||
template<typename> class Function;
|
||||
|
||||
@@ -85,8 +85,6 @@ namespace BAN
|
||||
friend class HashSet<T, HASH>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
template<typename T, typename HASH>
|
||||
HashSet<T, HASH>::HashSet(const HashSet<T, HASH>& other)
|
||||
: m_buckets(other.m_buckets)
|
||||
@@ -231,8 +229,6 @@ namespace BAN
|
||||
return m_buckets[index];
|
||||
}
|
||||
|
||||
|
||||
|
||||
template<typename T, typename HASH>
|
||||
HashSetIterator<T, HASH>& HashSetIterator<T, HASH>::operator++()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BAN
|
||||
|
||||
template<typename T, bool CONST>
|
||||
class LinkedListIterator;
|
||||
|
||||
|
||||
template<typename T>
|
||||
class LinkedList
|
||||
{
|
||||
@@ -114,8 +114,6 @@ namespace BAN
|
||||
friend class LinkedListIterator<T, !CONST>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
template<typename T>
|
||||
LinkedList<T>& LinkedList<T>::operator=(const LinkedList<T>& other)
|
||||
{
|
||||
@@ -293,8 +291,6 @@ namespace BAN
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
|
||||
template<typename T, bool CONST>
|
||||
template<bool C>
|
||||
LinkedListIterator<T, CONST>::LinkedListIterator(const LinkedListIterator<T, C>& other, enable_if_t<C == CONST || !C>*)
|
||||
@@ -379,7 +375,7 @@ namespace BAN
|
||||
ASSERT(m_current);
|
||||
return &m_current->value;
|
||||
}
|
||||
|
||||
|
||||
template<typename T, bool CONST>
|
||||
bool LinkedListIterator<T, CONST>::operator==(const LinkedListIterator<T, CONST>& other) const
|
||||
{
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace BAN
|
||||
ASSERT(has_value());
|
||||
return value();
|
||||
}
|
||||
|
||||
|
||||
template<typename T>
|
||||
const T& Optional<T>::operator*() const
|
||||
{
|
||||
@@ -160,7 +160,7 @@ namespace BAN
|
||||
ASSERT(has_value());
|
||||
return (const T&)m_storage;
|
||||
}
|
||||
|
||||
|
||||
template<typename T>
|
||||
T& Optional<T>::value()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace BAN
|
||||
{
|
||||
|
||||
|
||||
template<typename T> struct remove_refenrece { using type = T; };
|
||||
template<typename T> struct remove_refenrece<T&> { using type = T; };
|
||||
template<typename T> struct remove_refenrece<T&&> { using type = T; };
|
||||
@@ -68,7 +68,7 @@ namespace BAN
|
||||
template<typename T> struct is_const : false_type {};
|
||||
template<typename T> struct is_const<const T> : true_type {};
|
||||
template<typename T> inline constexpr bool is_const_v = is_const<T>::value;
|
||||
|
||||
|
||||
template<typename T> struct is_arithmetic { static constexpr bool value = is_integral_v<T> || is_floating_point_v<T>; };
|
||||
template<typename T> inline constexpr bool is_arithmetic_v = is_arithmetic<T>::value;
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ namespace BAN
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
template<typename T>
|
||||
const T& Vector<T>::operator[](size_type index) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user