Skip to content

Commit a27d0a3

Browse files
chore: update minified library versions
1 parent 3896176 commit a27d0a3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cp-algo/min/util/big_alloc.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#ifndef CP_ALGO_UTIL_big_alloc_HPP
22
#define CP_ALGO_UTIL_big_alloc_HPP
3+
#include <map>
34
#include <deque>
45
#include <vector>
56
#include <string>
@@ -19,5 +20,5 @@ return static_cast<T*>(::operator new(padded,std::align_val_t(align)));}void dea
1920
#if CP_ALGO_USE_MMAP
2021
if(padded>=MEGABYTE){munmap(p,padded);return;}
2122
#endif
22-
::operator delete(p,padded,std::align_val_t(align));}private:static constexpr std::size_t MEGABYTE=1<<20;static constexpr std::size_t round_up(std::size_t x)noexcept{return(x+Align-1)/Align*Align;}};template<typename T>using big_vector=std::vector<T,big_alloc<T>>;template<typename T>using big_basic_string=std::basic_string<T,std::char_traits<T>,big_alloc<T>>;template<typename T>using big_deque=std::deque<T,big_alloc<T>>;using big_string=big_basic_string<char>;}
23+
::operator delete(p,padded,std::align_val_t(align));}private:static constexpr std::size_t MEGABYTE=1<<20;static constexpr std::size_t round_up(std::size_t x)noexcept{return(x+Align-1)/Align*Align;}};template<typename T>using big_vector=std::vector<T,big_alloc<T>>;template<typename T>using big_basic_string=std::basic_string<T,std::char_traits<T>,big_alloc<T>>;template<typename T>using big_deque=std::deque<T,big_alloc<T>>;template<typename Key,typename Value,typename Compare=std::less<Key>>using big_map=std::map<Key,Value,Compare,big_alloc<std::pair<const Key,Value>>>;using big_string=big_basic_string<char>;}
2324
#endif

cp-algo/min/util/checkpoint.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <map>
88
namespace cp_algo{
99
#ifdef CP_ALGO_CHECKPOINT
10-
std::map<big_string,double>checkpoints;double last;
10+
big_map<big_string,double>checkpoints;double last;
1111
#endif
1212
template<bool final=false>void checkpoint([[maybe_unused]]auto const&_msg){
1313
#ifdef CP_ALGO_CHECKPOINT

0 commit comments

Comments
 (0)