]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/stdalgo.h
Use IsCTCP in blockcolor for ignoring CTCPs.
[user/henk/code/inspircd.git] / include / stdalgo.h
index 5786181323e998fc04be413573c3f076ebefeba5..585114fce93474127c456cfad47331bcb3d17359 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2018 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2018, 2020 Sadie Powell <sadie@witchery.services>
  *   Copyright (C) 2014, 2016, 2018 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
@@ -28,10 +28,10 @@ namespace stdalgo
                 * Erase a single element from a vector by overwriting it with a copy of the last element,
                 * which is then removed. This, in contrast to vector::erase(), does not result in all
                 * elements after the erased element being moved.
+                * Returns nothing, but all iterators, references and pointers to the erased element and the
+                * last element are invalidated
                 * @param vect Vector to remove the element from
                 * @param it Iterator to the element to remove
-                * @return Nothing, but all iterators, references and pointers to the erased element and the
-                * last element are invalidated
                 */
                template <typename T>
                inline void swaperase(typename std::vector<T>& vect, const typename std::vector<T>::iterator& it)