From: Hoa Nguyen Date: Fri, 21 Aug 2020 01:14:04 +0000 (-0700) Subject: base: Tag API methods in stl_helpers.hh X-Git-Tag: v20.1.0.0~87 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2106297c01c6445b3bb6257110ac9c0913c8106;p=gem5.git base: Tag API methods in stl_helpers.hh Change-Id: Ibc967febfd29444214094883121a66600d80cad8 Signed-off-by: Hoa Nguyen Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33118 Reviewed-by: Bobby R. Bruce Reviewed-by: Jason Lowe-Power Maintainer: Bobby R. Bruce Tested-by: kokoro --- diff --git a/src/base/stl_helpers.hh b/src/base/stl_helpers.hh index ef4f9ac1f..ae369b526 100644 --- a/src/base/stl_helpers.hh +++ b/src/base/stl_helpers.hh @@ -43,10 +43,16 @@ class ContainerPrint bool first; public: + /** + * @ingroup api_base_utils + */ ContainerPrint(std::ostream &out) : out(out), first(true) {} + /** + * @ingroup api_base_utils + */ void operator()(const T &elem) { @@ -60,8 +66,12 @@ class ContainerPrint } }; -// Write out all elements in an stl container as a space separated -// list enclosed in square brackets +/** + * Write out all elements in an stl container as a space separated + * list enclosed in square brackets + * + * @ingroup api_base_utils + */ template