Changeset 223258 in webkit


Ignore:
Timestamp:
Oct 12, 2017 2:29:29 PM (6 years ago)
Author:
achristensen@apple.com
Message:

Add CompletionHandler and HashCountedSet to wtf/Forward.h
https://bugs.webkit.org/show_bug.cgi?id=178231

Reviewed by Tim Horton.

  • wtf/Forward.h:
  • wtf/HashCountedSet.h:
Location:
trunk/Source/WTF
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r223238 r223258  
     12017-10-12  Alex Christensen  <achristensen@webkit.org>
     2
     3        Add CompletionHandler and HashCountedSet to wtf/Forward.h
     4        https://bugs.webkit.org/show_bug.cgi?id=178231
     5
     6        Reviewed by Tim Horton.
     7
     8        * wtf/Forward.h:
     9        * wtf/HashCountedSet.h:
     10
    1112017-10-11  Sam Weinig  <sam@webkit.org>
    212
  • trunk/Source/WTF/wtf/Forward.h

    r222113 r223258  
    3232class CrashOnOverflow;
    3333
    34 template<typename T> class Function;
    35 template<typename T> class LazyNeverDestroyed;
    36 template<typename T> class NeverDestroyed;
    37 template<typename T> class OptionSet;
    38 template<typename T> class Ref;
    39 template<typename T> class RefPtr;
    40 template<typename T> class StringBuffer;
     34template<typename> class CompletionHandler;
     35template<typename> class Function;
     36template<typename> class LazyNeverDestroyed;
     37template<typename> class NeverDestroyed;
     38template<typename> class OptionSet;
     39template<typename> class Ref;
     40template<typename> class RefPtr;
     41template<typename> class StringBuffer;
    4142
    42 template<typename... T> class Variant;
    43 template<typename T, size_t inlineCapacity = 0, typename OverflowHandler = CrashOnOverflow, size_t minCapacity = 16, typename Malloc = FastMalloc> class Vector;
     43template<typename> struct DefaultHash { using Hash = void; };
     44template<typename> struct HashTraits;
     45
     46template<typename...> class Variant;
     47template<typename, size_t inlineCapacity = 0, typename OverflowHandler = CrashOnOverflow, size_t minCapacity = 16, typename Malloc = FastMalloc> class Vector;
     48template<typename Value, typename HashFunctions = typename DefaultHash<Value>::Hash, typename Traits = HashTraits<Value>> class HashCountedSet;
    4449
    4550class AtomicString;
     
    6166using WTF::AtomicStringImpl;
    6267using WTF::BinarySemaphore;
     68using WTF::CompletionHandler;
    6369using WTF::CString;
    6470using WTF::Function;
    6571using WTF::FunctionDispatcher;
     72using WTF::HashCountedSet;
    6673using WTF::LazyNeverDestroyed;
    6774using WTF::NeverDestroyed;
  • trunk/Source/WTF/wtf/HashCountedSet.h

    r223236 r223258  
    2323#include <initializer_list>
    2424#include <wtf/Assertions.h>
     25#include <wtf/Forward.h>
    2526#include <wtf/HashMap.h>
    2627#include <wtf/Vector.h>
     
    2829namespace WTF {
    2930
    30 template<typename Value, typename HashFunctions = typename DefaultHash<Value>::Hash, typename Traits = HashTraits<Value>>
     31template<typename Value, typename HashFunctions, typename Traits>
    3132class HashCountedSet final {
    3233    WTF_MAKE_FAST_ALLOCATED;
Note: See TracChangeset for help on using the changeset viewer.