/*
- * Copyright 2012 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-#ifndef FOLLY_DETAIL_BITITERATORDETAIL_H_
-#define FOLLY_DETAIL_BITITERATORDETAIL_H_
+#pragma once
#include <iterator>
#include <type_traits>
+
#include <boost/iterator/iterator_adaptor.hpp>
namespace folly {
public:
BitReference(Ref r, size_t bit) : ref_(r), bit_(bit) { }
- operator bool() const {
+ /* implicit */ operator bool() const {
return ref_ & (one_ << bit_);
}
ssize_t> type;
};
-
-} // namespace bititerator_detail
-} // namespace folly
-
-#endif /* FOLLY_DETAIL_BITITERATORDETAIL_H_ */
-
+} // namespace bititerator_detail
+} // namespace folly