No need to export global instances of folly::AsciiCase(Ins|S)ensitive
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 15 Sep 2015 20:21:25 +0000 (13:21 -0700)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Tue, 15 Sep 2015 21:20:18 +0000 (14:20 -0700)
commit40673e015ab66a54ea900c89a9e367819f389d45
tree2459588ed52f70a9e52924b68ce5ad1e6487d59e
parentb57fd1bc00e1213b0dc4a8d597c9c7d0cf70402d
No need to export global instances of folly::AsciiCase(Ins|S)ensitive

Summary: [Folly] No need to export global instances of `folly::AsciiCaseInsensitive` and `folly::AsciiCaseSensitive`.

Calling code may simply construct instances at will - the compiler will optimize away the object construction since it has only the default ctor/dtor, no storage, and no vtable.

Reviewed By: @fugalh

Differential Revision: D2437419
folly/Range.cpp
folly/Range.h
folly/test/RangeFindBenchmark.cpp