X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FMemoryMapping.h;h=c05bad755de080795d4da25084e58df3e3898d5d;hb=130d4f661978a9d43a5d16fefed41dd2ea213505;hp=a1ca74440ae1a247ba76029e885894025939a2dd;hpb=51026ab6092a4bd8d7dc295d4b19245d63babdc6;p=folly.git diff --git a/folly/MemoryMapping.h b/folly/MemoryMapping.h index a1ca7444..c05bad75 100644 --- a/folly/MemoryMapping.h +++ b/folly/MemoryMapping.h @@ -1,5 +1,5 @@ /* - * Copyright 2015 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. @@ -14,14 +14,13 @@ * limitations under the License. */ -#ifndef FOLLY_MEMORYMAPPING_H_ -#define FOLLY_MEMORYMAPPING_H_ +#pragma once + +#include +#include -#include #include #include -#include -#include namespace folly { @@ -53,7 +52,7 @@ class MemoryMapping : boost::noncopyable { * likely become inaccessible) when the MemoryMapping object is destroyed. */ struct Options { - Options() { } + Options() {} // Convenience methods; return *this for chaining. Options& setPageSize(off_t v) { pageSize = v; return *this; } @@ -250,5 +249,3 @@ void alignedForwardMemcpy(void* dest, const void* src, size_t size); void mmapFileCopy(const char* src, const char* dest, mode_t mode = 0666); } // namespace folly - -#endif /* FOLLY_MEMORYMAPPING_H_ */