- Adjusted some tests while debugging PrettyPrinters
- Adjusted RDTreePrinter to print more "tree-like" - Added SetPrinter and MapPrinter - Fixed Issues with CStringPrinter and StringPrinter
This commit is contained in:
@@ -235,7 +235,7 @@ public:
|
||||
int p0 = psl - n, p1 = psl + n;
|
||||
bool c0 = false, c1 = false;
|
||||
|
||||
if ((c0 = (p0 > 0 && _alloc[i0].psl >= p0)) && _alloc[i0].value) {
|
||||
if ((c0 = (p0 >= 0 && _alloc[i0].psl >= p0)) && _alloc[i0].value) {
|
||||
if (*_alloc[i0].value == val) {
|
||||
return iterator(this, i);
|
||||
}
|
||||
|
||||
@@ -92,6 +92,16 @@ public:
|
||||
_str[n] = '\0';
|
||||
}
|
||||
|
||||
///
|
||||
/// \brief Buffer Constructor, wraps the provided C-Style string
|
||||
/// \param str the buffer to wrap
|
||||
/// \tparam n the number of characters in the buffer plus the null terminator
|
||||
template<size_t n>
|
||||
constexpr _string(char(&str)[n])
|
||||
: _str(str, n) {
|
||||
assert(_str[n - 1] == '\0', "Invalid NTBS.");
|
||||
}
|
||||
|
||||
///
|
||||
/// \brief Buffer Copy Constructor
|
||||
/// \param str the buffer to copy
|
||||
|
||||
Reference in New Issue
Block a user