Home
last modified time | relevance | path

Searched refs:balance_ (Results 1 – 11 of 11) sorted by relevance

/third_party/boost/libs/asio/example/cpp14/executors/
Dbank_account_1.cpp13 int balance_ = 0; member in bank_account
23 balance_ += amount; in deposit()
33 if (balance_ >= amount) in withdraw()
34 balance_ -= amount; in withdraw()
44 std::cout << "balance = " << balance_ << "\n"; in print_balance()
Dbank_account_2.cpp13 int balance_ = 0; member in bank_account
24 balance_ += amount; in deposit()
35 if (balance_ >= amount) in withdraw()
36 balance_ -= amount; in withdraw()
48 result = balance_; in balance()
/third_party/boost/libs/asio/example/cpp11/executors/
Dbank_account_1.cpp13 int balance_ = 0; member in bank_account
23 balance_ += amount; in deposit()
33 if (balance_ >= amount) in withdraw()
34 balance_ -= amount; in withdraw()
44 std::cout << "balance = " << balance_ << "\n"; in print_balance()
Dbank_account_2.cpp13 int balance_ = 0; member in bank_account
24 balance_ += amount; in deposit()
35 if (balance_ >= amount) in withdraw()
36 balance_ -= amount; in withdraw()
48 result = balance_; in balance()
/third_party/boost/doc/html/boost_asio/example/cpp11/executors/
Dbank_account_1.cpp13 int balance_ = 0; member in bank_account
23 balance_ += amount; in deposit()
33 if (balance_ >= amount) in withdraw()
34 balance_ -= amount; in withdraw()
44 std::cout << "balance = " << balance_ << "\n"; in print_balance()
Dbank_account_2.cpp13 int balance_ = 0; member in bank_account
24 balance_ += amount; in deposit()
35 if (balance_ >= amount) in withdraw()
36 balance_ -= amount; in withdraw()
48 result = balance_; in balance()
/third_party/boost/libs/thread/example/
Dba_externallly_locked.cpp23 int balance_; member in BankAccount
27 balance_ += amount; in Deposit()
31 balance_ -= amount; in Withdraw()
35 return balance_; in GetBalance()
/third_party/boost/libs/thread/doc/
Dinternal_locking.qbk65 int balance_;
69 balance_ += amount;
74 balance_ -= amount;
79 int b = balance_;
93 int balance_;
97 balance_ += amount;
101 balance_ -= amount;
105 return balance_;
148 int balance_;
152 balance_ += amount;
[all …]
Dexternal_locking.qbk21 int balance_;
25 balance_ += amount;
29 balance_ -= amount;
33 return balance_;
78 int balance_;
82 balance_ += amount;
86 balance_ -= amount;
103 int balance_;
108 balance_ += amount;
113 balance_ -= amount;
[all …]
/third_party/boost/libs/intrusive/example/
Ddoc_avltree_algorithms.cpp22 int balance_; member
41 static balance get_balance(const_node_ptr n) { return n->balance_; } in get_balance()
42 static void set_balance(node_ptr n, balance b) { n->balance_ = b; } in set_balance()
/third_party/boost/boost/intrusive/detail/
Davltree_node.hpp58 balance balance_; member
100 { return n->balance_; } in get_balance()
103 { return n->balance_; } in get_balance()
106 { n->balance_ = b; } in set_balance()