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.
| 1037 | // is 0). |
| 1038 | // Thread-safe. |
| 1039 | inline bool try_enqueue(T const& item) |
| 1040 | { |
| 1041 | MOODYCAMEL_CONSTEXPR_IF (INITIAL_IMPLICIT_PRODUCER_HASH_SIZE == 0) return false; |
| 1042 | else return inner_enqueue<CannotAlloc>(item); |
| 1043 | } |
| 1044 | |
| 1045 | // Enqueues a single item (by moving it, if possible). |
| 1046 | // Does not allocate memory (except for one-time implicit producer). |
nothing calls this directly
no test coverage detected