@@ -39,7 +39,7 @@ class trie {
3939 ~trie () noexcept (false );
4040
4141 /* *
42- * @brief Insert new key into trie
42+ * @brief Insert a single key into trie
4343 *
4444 * @param key Key to insert
4545 */
@@ -53,16 +53,22 @@ class trie {
5353 void build () noexcept (false );
5454
5555 /* *
56- * @brief Bulk lookup vector of keys
56+ * @brief For every pair (`offsets_begin[i]`, `offsets_begin[i + 1]`) in the range
57+ * `[offsets_begin, offsets_end)`, checks if the key defined by characters in the range
58+ * [`keys_begin[offsets_begin[i]]`, `keys_begin[offsets_begin[i + 1]]`) is present in trie.
59+ * Stores the index of key if it exists in trie (-1 otherwise) in `outputs_begin[i]`
5760 *
58- * @tparam KeyIt Device-accessible iterator to individual characters of keys
59- * @tparam OffsetIt Device-accessible iterator to positions of key boundaries
60- * @tparam OutputIt Device-accessible iterator to lookup result
61+ * @tparam KeyIt Device-accessible iterator whose `value_type` can be converted to trie's
62+ * `LabelType`
63+ * @tparam OffsetIt Device-accessible iterator whose `value_type` can be converted to trie's
64+ * `size_type`
65+ * @tparam OutputIt Device-accessible iterator whose `value_type` can be constructed from boolean
66+ * type
6167 *
6268 * @param keys_begin Begin iterator to individual key characters
6369 * @param offsets_begin Begin iterator to offsets of key boundaries
6470 * @param offsets_end End iterator to offsets
65- * @param outputs_begin Begin iterator to results
71+ * @param outputs_begin Begin iterator to lookup results
6672 * @param stream Stream to execute lookup kernel
6773 */
6874 template <typename KeyIt, typename OffsetIt, typename OutputIt>
0 commit comments