File: twitter_user.h

package info (click to toggle)
simdjson 4.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 31,396 kB
  • sloc: cpp: 195,760; ansic: 20,954; sh: 1,126; python: 885; makefile: 47; ruby: 25; javascript: 13
file content (18 lines) | stat: -rw-r--r-- 398 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include "simdjson.h"

namespace partial_tweets {

template<typename StringType=std::string_view>
struct twitter_user {
  uint64_t id{};
  StringType screen_name{};

  template<typename OtherStringType>
  bool operator==(const twitter_user<OtherStringType> &other) const {
    return id == other.id &&
           screen_name == other.screen_name;
  }
};

} // namespace partial_tweets