aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/def-vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdbsupport/def-vector.h')
-rw-r--r--gdbsupport/def-vector.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdbsupport/def-vector.h b/gdbsupport/def-vector.h
index 4d1df41..bdbf2d8 100644
--- a/gdbsupport/def-vector.h
+++ b/gdbsupport/def-vector.h
@@ -21,15 +21,16 @@
#include <vector>
#include "gdbsupport/default-init-alloc.h"
-namespace gdb {
+namespace gdb
+{
/* A vector that uses an allocator that default constructs using
default-initialization rather than value-initialization. The idea
is to use this when you don't want zero-initialization of elements
of vectors of trivial types. E.g., byte buffers. */
-template<typename T> using def_vector
- = std::vector<T, gdb::default_init_allocator<T>>;
+template<typename T>
+using def_vector = std::vector<T, gdb::default_init_allocator<T>>;
} /* namespace gdb */