Enqueues a single item (by copying it). Does not allocate memory. Fails if not enough room to enqueue (or implicit production is disabled because Traits::INITIAL_IMPLICIT_PRODUCER_HASH_SIZE is 0). Thread-safe.
| 1058 | // is 0). |
| 1059 | // Thread-safe. |
| 1060 | inline bool try_enqueue(T const& item) |
| 1061 | { |
| 1062 | MOODYCAMEL_CONSTEXPR_IF (INITIAL_IMPLICIT_PRODUCER_HASH_SIZE == 0) return false; |
| 1063 | else return inner_enqueue<CannotAlloc>(item); |
| 1064 | } |
| 1065 | |
| 1066 | // Enqueues a single item (by moving it, if possible). |
| 1067 | // Does not allocate memory (except for one-time implicit producer). |
nothing calls this directly
no test coverage detected