Fix includes and formatting.

This commit is contained in:
levlam 2022-02-08 00:04:34 +03:00
parent 86bceb2972
commit bcc2adeb47
53 changed files with 75 additions and 103 deletions

View File

@ -18,9 +18,8 @@
#include "td/utils/buffer.h"
#include "td/utils/common.h"
#include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
namespace td {

View File

@ -14,7 +14,6 @@
#include "td/utils/buffer.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -19,10 +19,10 @@
#include "td/actor/PromiseFuture.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
#include <memory>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
#include <utility>

View File

@ -13,11 +13,10 @@
#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
#include <map>
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -16,6 +16,7 @@
#include "td/utils/common.h"
#include "td/utils/crypto.h"
#include "td/utils/ExitGuard.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
#include "td/utils/MpscPollableQueue.h"
@ -29,7 +30,6 @@
#include <memory>
#include <mutex>
#include <queue>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
namespace td {

View File

@ -10,6 +10,7 @@
#include "td/telegram/td_api_json.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/JsonBuilder.h"
#include "td/utils/port/thread_local.h"
#include "td/utils/SliceBuilder.h"

View File

@ -8,13 +8,13 @@
#include "td/telegram/Client.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
#include <atomic>
#include <cstdint>
#include <mutex>
#include <string>
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -48,6 +48,7 @@
#include "td/utils/common.h"
#include "td/utils/crypto.h"
#include "td/utils/emoji.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/format.h"
#include "td/utils/JsonBuilder.h"
#include "td/utils/logging.h"
@ -61,9 +62,9 @@
#include "td/utils/tl_parsers.h"
#include "td/utils/UInt.h"
#include "td/utils/FlatHashMap.h"
#include <functional>
#include <memory>
#include "td/utils/FlatHashMap.h"
#include <utility>
namespace td {

View File

@ -9,10 +9,10 @@
#include "td/db/KeyValueSyncInterface.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
#include <memory>
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -40,6 +40,7 @@
#include "td/actor/Timeout.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Hints.h"
#include "td/utils/Status.h"
#include "td/utils/StringBuilder.h"
@ -47,7 +48,7 @@
#include <functional>
#include <memory>
#include "td/utils/FlatHashMap.h"
#include <unordered_map>
#include <unordered_set>
#include <utility>

View File

@ -13,11 +13,11 @@
#include "td/actor/PromiseFuture.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
#include "td/utils/Status.h"
#include <mutex>
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -12,11 +12,10 @@
#include "td/telegram/telegram_api.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
#include "td/utils/StringBuilder.h"
#include "td/utils/FlatHashMap.h"
namespace td {
class DialogFilter {

View File

@ -18,8 +18,8 @@
#include "td/utils/buffer.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include <utility>
namespace td {

View File

@ -20,13 +20,12 @@
#include "td/actor/PromiseFuture.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h"
#include "td/utils/Slice.h"
#include "td/utils/Status.h"
#include "td/utils/Variant.h"
#include "td/utils/FlatHashMap.h"
namespace td {
class Td;

View File

@ -18,6 +18,7 @@
#include "td/actor/SchedulerLocalStorage.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h"
#include "td/utils/Slice.h"
#include "td/utils/Status.h"
@ -26,7 +27,6 @@
#include <atomic>
#include <memory>
#include <mutex>
#include "td/utils/FlatHashMap.h"
namespace td {
class AnimationsManager;

View File

@ -21,9 +21,9 @@
#include "td/actor/Timeout.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
#include <utility>
namespace td {
@ -385,8 +385,7 @@ class GroupCallManager final : public Actor {
string pending_group_call_join_params_;
FlatHashMap<InputGroupCallId, unique_ptr<GroupCallParticipants>, InputGroupCallIdHash>
group_call_participants_;
FlatHashMap<InputGroupCallId, unique_ptr<GroupCallParticipants>, InputGroupCallIdHash> group_call_participants_;
FlatHashMap<DialogId, vector<InputGroupCallId>, DialogIdHash> participant_id_to_group_call_id_;
FlatHashMap<GroupCallId, unique_ptr<GroupCallRecentSpeakers>, GroupCallIdHash> group_call_recent_speakers_;

View File

@ -23,9 +23,9 @@
#include "td/actor/Timeout.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
#include <utility>
namespace td {

View File

@ -771,25 +771,17 @@ td_api::object_ptr<td_api::LanguagePackStringValue> LanguagePackManager::get_lan
}
td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(
const std::pair<string, string> &str) {
return td_api::make_object<td_api::languagePackString>(str.first, get_language_pack_string_value_object(str.second));
}
td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(
const string &a, const string &b) {
return td_api::make_object<td_api::languagePackString>(a, get_language_pack_string_value_object(b));
const string &key, const string &value) {
return td_api::make_object<td_api::languagePackString>(key, get_language_pack_string_value_object(value));
}
td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(
const std::pair<string, PluralizedString> &str) {
return td_api::make_object<td_api::languagePackString>(str.first, get_language_pack_string_value_object(str.second));
}
td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(
const string &a, const PluralizedString &b) {
return td_api::make_object<td_api::languagePackString>(a, get_language_pack_string_value_object(b));
const string &key, const PluralizedString &value) {
return td_api::make_object<td_api::languagePackString>(key, get_language_pack_string_value_object(value));
}
td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(const string &str) {
return td_api::make_object<td_api::languagePackString>(str, get_language_pack_string_value_object());
td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(const string &key) {
return td_api::make_object<td_api::languagePackString>(key, get_language_pack_string_value_object());
}
td_api::object_ptr<td_api::LanguagePackStringValue> LanguagePackManager::get_language_pack_string_value_object(

View File

@ -15,11 +15,11 @@
#include "td/utils/common.h"
#include "td/utils/Container.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
#include "td/utils/Status.h"
#include <mutex>
#include "td/utils/FlatHashMap.h"
#include <utility>
namespace td {
@ -125,15 +125,11 @@ class LanguagePackManager final : public NetQueryCallback {
const PluralizedString &value);
static td_api::object_ptr<td_api::LanguagePackStringValue> get_language_pack_string_value_object();
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(
const std::pair<string, string> &str);
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(
const string &, const string &);
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(
const std::pair<string, PluralizedString> &str);
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(
const string &, const PluralizedString &);
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(const string &str);
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(const string &key,
const string &value);
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(const string &key,
const PluralizedString &value);
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(const string &key);
static td_api::object_ptr<td_api::LanguagePackStringValue> get_language_pack_string_value_object(
const Language *language, const string &key);

View File

@ -17,9 +17,9 @@
#include "td/actor/PromiseFuture.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/StringBuilder.h"
#include "td/utils/FlatHashMap.h"
#include <utility>
namespace td {

View File

@ -1,4 +1,6 @@
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
@ -81,7 +83,6 @@
#include <limits>
#include <tuple>
#include <type_traits>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
#include <utility>
@ -36572,8 +36573,8 @@ bool MessagesManager::set_dialog_order(Dialog *d, int64 new_order, bool need_sen
}
void MessagesManager::update_dialog_lists(
Dialog *d, FlatHashMap<DialogListId, DialogPositionInList, DialogListIdHash> &&old_positions,
bool need_send_update, bool is_loaded_from_database, const char *source) {
Dialog *d, FlatHashMap<DialogListId, DialogPositionInList, DialogListIdHash> &&old_positions, bool need_send_update,
bool is_loaded_from_database, const char *source) {
if (td_->auth_manager_->is_bot()) {
return;
}

View File

@ -66,6 +66,7 @@
#include "td/utils/buffer.h"
#include "td/utils/ChangesProcessor.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Heap.h"
#include "td/utils/Hints.h"
#include "td/utils/logging.h"
@ -73,14 +74,11 @@
#include "td/utils/Status.h"
#include "td/utils/StringBuilder.h"
#include "td/utils/FlatHashMap.h"
#include <array>
#include <functional>
#include <map>
#include <memory>
#include <set>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
#include <utility>
@ -1326,11 +1324,11 @@ class MessagesManager final : public Actor {
bool suffix_load_done_ = false;
bool suffix_load_has_query_ = false;
int32 pts = 0; // for channels only
int32 pending_read_channel_inbox_pts = 0; // for channels only
int32 pending_read_channel_inbox_server_unread_count = 0; // for channels only
MessageId pending_read_channel_inbox_max_message_id; // for channels only
FlatHashMap<int64, MessageId> random_id_to_message_id; // for secret chats only
int32 pts = 0; // for channels only
int32 pending_read_channel_inbox_pts = 0; // for channels only
int32 pending_read_channel_inbox_server_unread_count = 0; // for channels only
MessageId pending_read_channel_inbox_max_message_id; // for channels only
FlatHashMap<int64, MessageId> random_id_to_message_id; // for secret chats only
MessageId last_assigned_message_id; // identifier of the last local or yet unsent message, assigned after
// application start, used to guarantee that all assigned message identifiers
@ -3022,8 +3020,7 @@ class MessagesManager final : public Actor {
bool set_dialog_order(Dialog *d, int64 new_order, bool need_send_update, bool is_loaded_from_database,
const char *source);
void update_dialog_lists(Dialog *d,
FlatHashMap<DialogListId, DialogPositionInList, DialogListIdHash> &&old_positions,
void update_dialog_lists(Dialog *d, FlatHashMap<DialogListId, DialogPositionInList, DialogListIdHash> &&old_positions,
bool need_send_update, bool is_loaded_from_database, const char *source);
void update_last_dialog_date(FolderId folder_id);
@ -3326,10 +3323,9 @@ class MessagesManager final : public Actor {
FlatHashMap<int64, FullMessageId> being_sent_messages_; // message_random_id -> message
FlatHashMap<FullMessageId, MessageId, FullMessageIdHash>
update_message_ids_; // new_message_id -> temporary_id
FlatHashMap<FullMessageId, MessageId, FullMessageIdHash> update_message_ids_; // new_message_id -> temporary_id
FlatHashMap<DialogId, FlatHashMap<ScheduledServerMessageId, MessageId, ScheduledServerMessageIdHash>,
DialogIdHash>
DialogIdHash>
update_scheduled_message_ids_; // new_message_id -> temporary_id
const char *debug_add_message_to_dialog_fail_reason_ = "";
@ -3444,7 +3440,7 @@ class MessagesManager final : public Actor {
FlatHashMap<int64, td_api::object_ptr<td_api::messageCalendar>> found_dialog_message_calendars_;
FlatHashMap<int64, std::pair<int32, vector<MessageId>>>
found_dialog_messages_; // random_id -> [total_count, [message_id]...]
found_dialog_messages_; // random_id -> [total_count, [message_id]...]
FlatHashMap<int64, DialogId> found_dialog_messages_dialog_id_; // random_id -> dialog_id
FlatHashMap<int64, std::pair<int32, vector<FullMessageId>>>
found_messages_; // random_id -> [total_count, [full_message_id]...]
@ -3578,8 +3574,7 @@ class MessagesManager final : public Actor {
ChangesProcessor<unique_ptr<PendingSecretMessage>> pending_secret_messages_;
FlatHashMap<DialogId, vector<DialogId>, DialogIdHash>
pending_add_dialog_last_database_message_dependent_dialogs_;
FlatHashMap<DialogId, vector<DialogId>, DialogIdHash> pending_add_dialog_last_database_message_dependent_dialogs_;
FlatHashMap<DialogId, std::pair<int32, unique_ptr<Message>>, DialogIdHash>
pending_add_dialog_last_database_message_; // dialog -> dependency counter + message

View File

@ -61,7 +61,6 @@
#include <algorithm>
#include <iterator>
#include <limits>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
namespace td {

View File

@ -24,6 +24,7 @@
#include "td/actor/Timeout.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h"
#include "td/utils/Status.h"
#include "td/utils/StringBuilder.h"
@ -31,7 +32,6 @@
#include <functional>
#include <map>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
namespace td {

View File

@ -44,7 +44,6 @@
#include <algorithm>
#include <limits>
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -21,9 +21,9 @@
#include "td/utils/buffer.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
#include <utility>

View File

@ -10,11 +10,11 @@
#include "td/actor/PromiseFuture.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
#include "td/utils/Status.h"
#include <queue>
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -18,10 +18,10 @@
#include "td/utils/common.h"
#include "td/utils/Container.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
#include <map>
#include "td/utils/FlatHashMap.h"
#include <utility>
namespace td {

View File

@ -11,11 +11,11 @@
#include "td/actor/actor.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Random.h"
#include "td/utils/Slice.h"
#include <limits>
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -16,9 +16,8 @@
#include "td/actor/Timeout.h"
#include "td/utils/common.h"
#include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
namespace td {

View File

@ -46,6 +46,7 @@
#include "td/utils/algorithm.h"
#include "td/utils/base64.h"
#include "td/utils/emoji.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/format.h"
#include "td/utils/JsonBuilder.h"
#include "td/utils/logging.h"

View File

@ -25,13 +25,13 @@
#include "td/utils/buffer.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Hints.h"
#include "td/utils/Slice.h"
#include "td/utils/Status.h"
#include <memory>
#include <tuple>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
#include <utility>

View File

@ -26,12 +26,12 @@
#include "td/utils/buffer.h"
#include "td/utils/common.h"
#include "td/utils/Container.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h"
#include "td/utils/Slice.h"
#include "td/utils/Status.h"
#include <memory>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
#include <utility>

View File

@ -14,7 +14,6 @@
#include "td/utils/buffer.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -14,7 +14,6 @@
#include "td/utils/buffer.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -12,7 +12,6 @@
#include "td/telegram/telegram_api.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -13,9 +13,8 @@
#include "td/telegram/telegram_api.h"
#include "td/utils/common.h"
#include "td/utils/Slice.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
namespace td {

View File

@ -20,9 +20,9 @@
#include "td/actor/Timeout.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
#include <utility>
@ -192,8 +192,7 @@ class WebPagesManager final : public Actor {
FlatHashMap<WebPageId, std::unordered_set<FullMessageId, FullMessageIdHash>, WebPageIdHash> web_page_messages_;
FlatHashMap<WebPageId, FlatHashMap<int64, std::pair<string, Promise<Unit>>>, WebPageIdHash>
pending_get_web_pages_;
FlatHashMap<WebPageId, FlatHashMap<int64, std::pair<string, Promise<Unit>>>, WebPageIdHash> pending_get_web_pages_;
int64 get_web_page_preview_request_id_ = 1;
FlatHashMap<int64, WebPageId> got_web_page_previews_;

View File

@ -25,6 +25,7 @@
#include "td/utils/ExitGuard.h"
#include "td/utils/FileLog.h"
#include "td/utils/filesystem.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/format.h"
#include "td/utils/JsonBuilder.h"
#include "td/utils/logging.h"
@ -63,7 +64,6 @@
#include <memory>
#include <queue>
#include <tuple>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
#include <utility>

View File

@ -27,6 +27,7 @@
#include "td/utils/common.h"
#include "td/utils/Container.h"
#include "td/utils/Enumerator.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h"
#include "td/utils/optional.h"
#include "td/utils/Slice.h"
@ -36,7 +37,6 @@
#include <map>
#include <memory>
#include <set>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
#include <utility>

View File

@ -10,11 +10,11 @@
#include "td/telegram/files/FileType.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/StringBuilder.h"
#include "td/utils/tl_helpers.h"
#include <array>
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -19,6 +19,7 @@
#include "td/db/SqliteKeyValue.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/format.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
@ -31,7 +32,6 @@
#include "td/utils/tl_parsers.h"
#include <functional>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
namespace td {

View File

@ -26,6 +26,7 @@
#include "td/utils/BufferedFd.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/FloodControlStrict.h"
#include "td/utils/logging.h"
#include "td/utils/port/IPAddress.h"
@ -37,7 +38,6 @@
#include <map>
#include <memory>
#include <set>
#include "td/utils/FlatHashMap.h"
#include <utility>
namespace td {

View File

@ -22,6 +22,7 @@
#include "td/utils/buffer.h"
#include "td/utils/CancellationToken.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/List.h"
#include "td/utils/Status.h"
#include "td/utils/StringBuilder.h"
@ -32,7 +33,6 @@
#include <functional>
#include <map>
#include <memory>
#include "td/utils/FlatHashMap.h"
#include <unordered_set>
#include <utility>

View File

@ -15,6 +15,7 @@
#include "td/utils/buffer.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
#include "td/utils/port/RwMutex.h"
@ -25,7 +26,7 @@
#include "td/utils/tl_storers.h"
#include <memory>
#include "td/utils/FlatHashMap.h"
#include <unordered_map>
#include <utility>
namespace td {

View File

@ -9,9 +9,8 @@
#include "td/actor/PromiseFuture.h"
#include "td/utils/common.h"
#include "td/utils/Slice.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
namespace td {

View File

@ -6,9 +6,8 @@
//
#pragma once
#include "td/utils/Slice.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
namespace td {

View File

@ -9,12 +9,11 @@
#include "td/db/SqliteDb.h"
#include "td/db/SqliteStatement.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
#include "td/utils/SliceBuilder.h"
#include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
namespace td {
class SqliteKeyValue {

View File

@ -11,9 +11,9 @@
#include "td/actor/PromiseFuture.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include <memory>
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -11,6 +11,7 @@
#include "td/db/binlog/BinlogHelper.h"
#include "td/db/binlog/BinlogInterface.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/misc.h"
#include "td/utils/Random.h"
#include "td/utils/StorerBase.h"
@ -19,7 +20,6 @@
#include "td/utils/tl_storers.h"
#include <set>
#include "td/utils/FlatHashMap.h"
namespace td {

View File

@ -8,10 +8,10 @@
#include "td/db/SeqKeyValue.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/port/RwMutex.h"
#include "td/utils/Slice.h"
#include "td/utils/FlatHashMap.h"
#include <utility>
namespace td {

View File

@ -1,5 +1,5 @@
#include "td/utils/tests.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/tests.h"
#include <array>
#include <string>

View File

@ -23,6 +23,7 @@
#include "td/utils/base64.h"
#include "td/utils/common.h"
#include "td/utils/filesystem.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h"
#include "td/utils/port/FileFd.h"
#include "td/utils/port/thread.h"
@ -34,7 +35,6 @@
#include <limits>
#include <map>
#include <memory>
#include <unordered_map>
template <class ContainerT>
static typename ContainerT::value_type &rand_elem(ContainerT &cont) {