-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #647 from ONLYOFFICE/release/v7.4.0
Release/v7.4.0
- Loading branch information
Showing
15 changed files
with
107 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
class StrongRootBlockAllocator { | ||
public: | ||
using pointer = Address*; | ||
using const_pointer = const Address*; | ||
using reference = Address&; | ||
using const_reference = const Address&; | ||
using value_type = Address; | ||
using size_type = size_t; | ||
using difference_type = ptrdiff_t; | ||
template <class U> | ||
struct rebind; | ||
|
||
explicit StrongRootBlockAllocator(Heap* heap) : heap_(heap) {} | ||
|
||
Address* allocate(size_t n); | ||
void deallocate(Address* p, size_t n) noexcept; | ||
|
||
private: | ||
Heap* heap_; | ||
}; | ||
|
||
// Rebinding to Address gives another StrongRootBlockAllocator. | ||
template <> | ||
struct StrongRootBlockAllocator::rebind<Address> { | ||
using other = StrongRootBlockAllocator; | ||
}; | ||
|
||
// Rebinding to something other than Address gives a std::allocator that | ||
// is copy-constructable from StrongRootBlockAllocator. | ||
template <class U> | ||
struct StrongRootBlockAllocator::rebind { | ||
class other : public std::allocator<U> { | ||
public: | ||
// NOLINTNEXTLINE | ||
other(const StrongRootBlockAllocator&) {} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.3.3 | ||
7.4.0 |