Skip to content

std::shared_ptr aliasing constructor

1、在 nextptr shared_ptr - basics and internals with examples 中提及了aliasing constructor,其中的例子以及说明了它的含义,那它有哪些用法呢?

2、"Aliasing constructed shared_ptr as key of map or set" 这是 nextptr shared_ptr - basics and internals with examples 的作者推荐的文章

3、名称中的"aliasing"源自C family language中的strict aliasing

TODO

stackoverflow What is shared_ptr's aliasing constructor for?

https://www.zhihu.com/question/50353801

https://www.codesynthesis.com/~boris/blog/2012/04/25/shared-ptr-aliasing-constructor/