]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/backtrace.h
Prefer more cache-efficient containers
[libs/core.git] / source / debug / backtrace.h
index 33ed8934eb1fd966b09664eb6cbe5c046eeeef8a..3f32ade0c4558478f633e93f02f9e9e29b261024 100644 (file)
@@ -1,9 +1,9 @@
 #ifndef MSP_DEBUG_BACKTRACE_H_
 #define MSP_DEBUG_BACKTRACE_H_
 
-#include <list>
 #include <ostream>
 #include <string>
+#include <vector>
 
 namespace Msp {
 namespace Debug {
@@ -19,10 +19,10 @@ public:
        };
 
 private:
-       std::list<StackFrame> frames;
+       std::vector<StackFrame> frames;
 
 public:
-       const std::list<StackFrame> &get_frames() const { return frames; }
+       const std::vector<StackFrame> &get_frames() const { return frames; }
 
        static Backtrace create();
 };