mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
C++ - better => butter
Summary: Renaming the `better` utilities to `butter`: - to prevent claims that this library is superior to others - it really depends on use cases - to indicate ease of use throughout the codebase, easily spread like butter Changelog: [C++][Changed] Renaming C++ better util to butter, used by Fabric internals Reviewed By: JoshuaGross Differential Revision: D33242764 fbshipit-source-id: 26dc95d9597c61ce8e66708e44ed545e0fc5cff5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b4dab1a537
commit
fb39d45ed5
@@ -9,7 +9,7 @@
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
#include <better/optional.h>
|
||||
#include <butter/optional.h>
|
||||
#include <folly/container/EvictingCacheMap.h>
|
||||
|
||||
namespace facebook {
|
||||
@@ -48,7 +48,7 @@ class SimpleThreadSafeCache {
|
||||
* If the value wasn't found in the cache, returns empty optional.
|
||||
* Can be called from any thread.
|
||||
*/
|
||||
better::optional<ValueT> get(const KeyT &key) const {
|
||||
butter::optional<ValueT> get(const KeyT &key) const {
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
auto iterator = map_.find(key);
|
||||
if (iterator == map_.end()) {
|
||||
|
||||
Reference in New Issue
Block a user