diff --git a/doc/cn/eventqueue.md b/doc/cn/eventqueue.md index e0350ff..344c385 100644 --- a/doc/cn/eventqueue.md +++ b/doc/cn/eventqueue.md @@ -92,10 +92,10 @@ EventQueue 可以拷贝、移动、赋值和移动赋值 ```cpp template -void enqueue(A ...args); +void enqueue(A && ...args); template -void enqueue(T && first, A ...args); +void enqueue(T && first, A && ...args); ``` 将一个事件加入事件队列。事件的类型包含在传给 `enqueue` 函数的实参中。 diff --git a/doc/eventqueue.md b/doc/eventqueue.md index b05c465..4d77e84 100644 --- a/doc/eventqueue.md +++ b/doc/eventqueue.md @@ -83,10 +83,10 @@ Note: the queued events are not copied, moved, assigned, or move assigned, only ```c++ template -void enqueue(A ...args); +void enqueue(A && ...args); template -void enqueue(T && first, A ...args); +void enqueue(T && first, A && ...args); ``` Put an event into the event queue. The event type is deducted from the arguments of `enqueue`. All copyable arguments are copied to internal data structure. All non-copyable but movable arguments are moved.