Skip to content

Commit

Permalink
Update snapshots for the Deleter comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatum committed Sep 16, 2021
1 parent 9b519fe commit 8a5add9
Show file tree
Hide file tree
Showing 19 changed files with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace capi {

struct MyStruct;

/**
* A destruction policy for using Foo with std::unique_ptr.
*/
struct FooDeleter {
void operator()(capi::Foo* l) const noexcept {
capi::Foo_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace capi {

#include "MyEnum.hpp"

/**
* A destruction policy for using MyStruct with std::unique_ptr.
*/
struct MyStructDeleter {
void operator()(capi::MyStruct* l) const noexcept {
capi::MyStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace capi {

class MyStruct;

/**
* A destruction policy for using MyStruct with std::unique_ptr.
*/
struct MyStructDeleter {
void operator()(capi::MyStruct* l) const noexcept {
capi::MyStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ namespace capi {
}


/**
* A destruction policy for using MyStruct with std::unique_ptr.
*/
struct MyStructDeleter {
void operator()(capi::MyStruct* l) const noexcept {
capi::MyStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace capi {

struct MyStruct;

/**
* A destruction policy for using MyStruct with std::unique_ptr.
*/
struct MyStructDeleter {
void operator()(capi::MyStruct* l) const noexcept {
capi::MyStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace capi {

class MyStruct;

/**
* A destruction policy for using MyStruct with std::unique_ptr.
*/
struct MyStructDeleter {
void operator()(capi::MyStruct* l) const noexcept {
capi::MyStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace capi {

struct Foo;

/**
* A destruction policy for using Bar with std::unique_ptr.
*/
struct BarDeleter {
void operator()(capi::Bar* l) const noexcept {
capi::Bar_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace capi {

#include "Bar.hpp"

/**
* A destruction policy for using Foo with std::unique_ptr.
*/
struct FooDeleter {
void operator()(capi::Foo* l) const noexcept {
capi::Foo_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace capi {

class Foo;

/**
* A destruction policy for using Bar with std::unique_ptr.
*/
struct BarDeleter {
void operator()(capi::Bar* l) const noexcept {
capi::Bar_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace capi {

struct Bar;

/**
* A destruction policy for using Foo with std::unique_ptr.
*/
struct FooDeleter {
void operator()(capi::Foo* l) const noexcept {
capi::Foo_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ namespace capi {
}


/**
* A destruction policy for using MyOpaqueStruct with std::unique_ptr.
*/
struct MyOpaqueStructDeleter {
void operator()(capi::MyOpaqueStruct* l) const noexcept {
capi::MyOpaqueStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace capi {

class MyOpaqueStruct;

/**
* A destruction policy for using MyStruct with std::unique_ptr.
*/
struct MyStructDeleter {
void operator()(capi::MyStruct* l) const noexcept {
capi::MyStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ namespace capi {
}


/**
* A destruction policy for using MyOpaqueStruct with std::unique_ptr.
*/
struct MyOpaqueStructDeleter {
void operator()(capi::MyOpaqueStruct* l) const noexcept {
capi::MyOpaqueStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ namespace capi {
class MyOpaqueStruct;
struct MyStruct;

/**
* A destruction policy for using MyStruct with std::unique_ptr.
*/
struct MyStructDeleter {
void operator()(capi::MyStruct* l) const noexcept {
capi::MyStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ namespace capi {
}


/**
* A destruction policy for using MyOpaqueStruct with std::unique_ptr.
*/
struct MyOpaqueStructDeleter {
void operator()(capi::MyOpaqueStruct* l) const noexcept {
capi::MyOpaqueStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ namespace capi {
class MyOpaqueStruct;
struct MyStruct;

/**
* A destruction policy for using MyStruct with std::unique_ptr.
*/
struct MyStructDeleter {
void operator()(capi::MyStruct* l) const noexcept {
capi::MyStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ namespace capi {

struct MyStruct;

/**
* A destruction policy for using MyStruct with std::unique_ptr.
*/
struct MyStructDeleter {
void operator()(capi::MyStruct* l) const noexcept {
capi::MyStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ namespace capi {
}


/**
* A destruction policy for using MyStruct with std::unique_ptr.
*/
struct MyStructDeleter {
void operator()(capi::MyStruct* l) const noexcept {
capi::MyStruct_destroy(l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ namespace capi {
}


/**
* A destruction policy for using MyStruct with std::unique_ptr.
*/
struct MyStructDeleter {
void operator()(capi::MyStruct* l) const noexcept {
capi::MyStruct_destroy(l);
Expand Down

0 comments on commit 8a5add9

Please sign in to comment.