test_lib_size.h 2.2 KB
Newer Older
L
liuruilong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

L
liuruilong 已提交
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
//
// Created by liuRuiLong on 2018/6/6.
//

#ifndef PADDLE_MOBILE_TEST_LIB_SIZE_H
#define PADDLE_MOBILE_TEST_LIB_SIZE_H

#include <vector>
//#include <list>
//#include <tuple>
//#include <typeinfo>
//#include <mutex>
//#include <initializer_list>
//#include <map>
//#include <string>
//#include <unordered_map>
//#include <unordered_set>
//#include <algorithm>

//#include <iostream>
//#include <sstream>
#include <memory>
//#include <stdio.h>
//#include <cstring>

L
liuruilong 已提交
40 41 42 43
void foo() {
  //  char *str = "1234";
  //  char dst[10];
  //  strcpy(dst, str);
L
liuruilong 已提交
44

L
liuruilong 已提交
45
  //  std::cout << "12345" << std::endl;
L
liuruilong 已提交
46 47
  std::vector<int> vec = {1, 2, 3, 4, 5};

L
liuruilong 已提交
48 49
  //  std::find(vec.begin(), vec.end(), 1);
  //  std::find(vec.begin(), vec.end(), 1);
L
liuruilong 已提交
50

L
liuruilong 已提交
51 52
  //  std::list<int> l;
  //  std::mutex mutex_;
L
liuruilong 已提交
53

L
liuruilong 已提交
54 55 56 57 58
  //  std::map<int, float> m;
  //  std::unordered_map<int, float> u_m;
  //  std::unordered_set<int> u_s;
  //  std::string ss = "12345";
  //  printf("%f", ss.c_str());
L
liuruilong 已提交
59

L
liuruilong 已提交
60 61
  //  std::initializer_list<int> init_list = {1, 2};
  //  std::tuple<int, int> t = {1, 2};
L
liuruilong 已提交
62 63 64

  //  std::tuple_element<I, std::tuple<ARGS...>>::type

L
liuruilong 已提交
65
  //  std::tuple<>
L
liuruilong 已提交
66

L
liuruilong 已提交
67 68 69 70 71
  //  int i;
  //  int j;
  //  if (typeid(i) == typeid(j)){
  //    int z = 10;
  //  }
L
liuruilong 已提交
72 73 74

  std::shared_ptr<int> s1 = std::make_shared<int>();

L
liuruilong 已提交
75 76
  //  std::stringstream ss;
  //  ss << "12345";
L
liuruilong 已提交
77 78 79 80
}

class test_lib_size {
 public:
L
liuruilong 已提交
81 82 83 84 85 86 87 88 89 90
  test_lib_size() {}
  //  std::shared_ptr<int> Test(){
  //    std::vector<int> vec = {1, 2, 3};
  //    std::shared_ptr<int> si = std::make_shared<int>();
  //    return si;
  //  }

  //  void test(){
  //    int i = 9;
  //  }
L
liuruilong 已提交
91 92
};

L
liuruilong 已提交
93
#endif  // PADDLE_MOBILE_TEST_LIB_SIZE_H