-typedef std::vector<xbt_backtrace_location_t> Backtrace;
-
-/** Try to demangle a C++ name
- *
- * Return the origin string if this fails.
- */
-XBT_PUBLIC std::unique_ptr<char, void (*)(void*)> demangle(const char* name);
-
-/** Get the current backtrace */
-XBT_PUBLIC Backtrace backtrace();
-
-/* Translate the backtrace in a human friendly form
- *
- * Try resolve symbols and source code location.
- */
-XBT_PUBLIC std::vector<std::string> resolve_backtrace(xbt_backtrace_location_t const* loc, std::size_t count);
-}
-}
-
-/** @brief Captures a backtrace for further use */
-XBT_PUBLIC size_t xbt_backtrace_current(xbt_backtrace_location_t* loc, size_t count);
-
-/** @brief Display a previously captured backtrace */
-XBT_PUBLIC void xbt_backtrace_display(xbt_backtrace_location_t* loc, size_t count);
-
+class Backtrace {
+public:
+ std::shared_ptr<BacktraceImpl> impl_;
+ Backtrace();
+ /** @brief Translate the backtrace in a human friendly form, unmangled with source code locations. */
+ std::string resolve() const;
+ /** @brief Display the resolved backtrace on stderr */
+ void display() const;
+};
+
+} // namespace simgrid::xbt