Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions fi/include/frequent_items_sketch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ enum frequent_items_error_type {
* For sketches containing strings, cross-language portability depends on
* using compatible string encodings. This class does not by itself enforce
* UTF-8 validity for all string inputs.
*
* The map copies or moves items when an item is added, when it grows, and when it purges.
* So the move constructor of T must not throw, and neither must the copy constructor,
* which takes the move's place if T has no move constructor.
* If one throws, do not use the sketch, and destroying it may be undefined behavior.
*/
template<
typename T,
Expand Down