cxxbridge-cmd 1.0.194

C++ code generator for integrating `cxx` crate into a non-Cargo build.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

namespace rust {
inline namespace cxxbridge1 {
namespace {
template <bool> struct deleter_if {
  template <typename T> void operator()(T *) {}
};
//
template <> struct deleter_if<true> {
  template <typename T> void operator()(T *ptr) { ptr->~T(); }
};
} // namespace
} // namespace cxxbridge1
} // namespace rust