For the function of writing, we generally use the take-away mode, meaning that the caller does not need to provide a container, we will re-apply in the internal memory function, to provide a new container for the returned data, which is like a takeout box;
Design Patterns - writing functions using the take-away mode
Guess you like
Origin blog.csdn.net/songyuc/article/details/104281760
Ranking