/Engine/Source/Runtime/Core/Public/Serialization/CompactBinary.h
This uses the curiously recurring template pattern to construct the correct derived type, that must inherit fromTCbBufferand this type to expose the factory functions.
template<typename Type, typename ViewType> class TCbBufferFactory