From 2429264f12ce3146e21c0e4dda91f778d2a6b1b4 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Thu, 12 Jul 2012 20:06:40 +0000 Subject: Add quick reference for bind/callback usage. Review URL: https://chromiumcodereview.appspot.com/10692147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146425 0039d316-1c4b-4281-b951-d872f2087c98 --- base/bind.h.pump | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'base/bind.h.pump') diff --git a/base/bind.h.pump b/base/bind.h.pump index aba9b02..b321649 100644 --- a/base/bind.h.pump +++ b/base/bind.h.pump @@ -35,12 +35,23 @@ $var MAX_ARITY = 7 #include "base/bind_internal.h" #include "base/callback_internal.h" -// See base/callback.h for how to use these functions. If reading the -// implementation, before proceeding further, you should read the top -// comment of base/bind_internal.h for a definition of common terms and -// concepts. +// ----------------------------------------------------------------------------- +// Usage documentation +// ----------------------------------------------------------------------------- +// +// See base/callback.h for documentation. +// +// +// ----------------------------------------------------------------------------- +// Implementation notes +// ----------------------------------------------------------------------------- +// +// If you're reading the implementation, before proceeding further, you should +// read the top comment of base/bind_internal.h for a definition of common +// terms and concepts. +// +// RETURN TYPES // -// IMPLEMENTATION NOTE // Though Bind()'s result is meant to be stored in a Callback<> type, it // cannot actually return the exact type without requiring a large amount // of extra template specializations. The problem is that in order to -- cgit v1.1